Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Remove sensitive log and add log for fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-chen committed Dec 10, 2020
1 parent d170da3 commit d155af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public RestChannelConsumer prepareRequest(SQLQueryRequest request, NodeClient no
sqlService.analyze(
sqlService.parse(request.getQuery())));
} catch (SyntaxCheckException e) {
// When explain, print info log for what unsupported syntax is causing fallback to old engine
if (request.isExplainRequest()) {
LOG.info("Request is falling back to old SQL engine due to: " + e.getMessage());
}
return NOT_SUPPORTED_YET;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient cli
format.getFormatName());
RestChannelConsumer result = newSqlQueryHandler.prepareRequest(newSqlRequest, client);
if (result != RestSQLQueryAction.NOT_SUPPORTED_YET) {
LOG.info("[{}] Request {} is handled by new SQL query engine",
LogUtils.getRequestId(), newSqlRequest);
LOG.info("[{}] Request is handled by new SQL query engine", LogUtils.getRequestId());
return result;
}
LOG.debug("[{}] Request {} is not supported and falling back to old SQL engine",
Expand Down

0 comments on commit d155af8

Please sign in to comment.