ivandasch commented on code in PR #10760:
URL: https://github.com/apache/ignite/pull/10760#discussion_r1214074306
##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/CalciteQueryProcessor.java:
##########
@@ -491,14 +496,29 @@ private <T> List<T> parseAndProcessQuery(
plan0 = prepareSvc.prepareSingle(sqlNode,
qry.planningContext());
return action.apply(qry, plan0);
- }, schema.getName(), sqlNode.toString(), qrys, params);
+ }, schema.getName(), removeSensitive(sqlNode), qrys, params);
res.add(singleRes);
}
return res;
}
+ /** */
+ private String removeSensitive(SqlNode qry) {
+ if (QueryUtils.INCLUDE_SENSITIVE)
+ return qry.toString();
+ else {
Review Comment:
It seems that `else` here is not needed. Let's remove it, shall we?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]