[fix](headless)Fix a number of issues. (#2026)
Some checks are pending
supersonic CentOS CI / build (21) (push) Waiting to run
supersonic mac CI / build (21) (push) Waiting to run
supersonic ubuntu CI / build (21) (push) Waiting to run
supersonic windows CI / build (21) (push) Waiting to run

This commit is contained in:
Jun Zhang
2025-02-02 12:50:29 +08:00
committed by GitHub
parent de92b357df
commit d294fec2a0
19 changed files with 184 additions and 239 deletions

View File

@@ -20,7 +20,7 @@ public class DefaultQueryCache implements QueryCache {
if (isCache(semanticQueryReq)) {
Object result = cacheManager.get(cacheKey);
if (Objects.nonNull(result)) {
log.info("query from cache, key:{},result:{}", cacheKey,
log.debug("query from cache, key:{},result:{}", cacheKey,
StringUtils.normalizeSpace(result.toString()));
}
return result;

View File

@@ -45,7 +45,7 @@ public class JdbcExecutor implements QueryExecutor {
sqlUtil.queryInternal(queryStatement.getSql(), queryResultWithColumns);
queryResultWithColumns.setSql(sql);
} catch (Exception e) {
log.error("queryInternal with error [{}]", StringUtils.normalizeSpace(e.getMessage()));
log.error("queryInternal with error ", e);
queryResultWithColumns.setErrorMsg(e.getMessage());
}
return queryResultWithColumns;

View File

@@ -50,7 +50,8 @@ public class DefaultSemanticTranslator implements SemanticTranslator {
optimizer.rewrite(queryStatement);
}
}
log.info("translated query SQL: [{}]", StringUtils.normalizeSpace(queryStatement.getSql()));
log.debug("translated query SQL: [{}]",
StringUtils.normalizeSpace(queryStatement.getSql()));
}
private void mergeOntologyQuery(QueryStatement queryStatement) throws Exception {