Maksim Zhuravkov created IGNITE-21055:
-----------------------------------------
Summary: Sql. ParserService should use SqlNode::unparse instead of
SqlNode::toString
Key: IGNITE-21055
URL: https://issues.apache.org/jira/browse/IGNITE-21055
Project: Ignite
Issue Type: Improvement
Components: sql
Reporter: Maksim Zhuravkov
Problem - SqlNodes may contain sensitive information that can leak into logs
via toString method, in order to avoid such
issues it maybe a good idea to override toString method to remove all sensitive
information for such SQL nodes.
Unfornutently such approach breaks PrepareService, because it builds a copy for
a SQL AST from SQL string created by SqlNode::toString method.
Let's update ParserService to build SQL via unparse method to avoid this
problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)