[ 
https://issues.apache.org/jira/browse/IGNITE-27459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Plekhanov updated IGNITE-27459:
---------------------------------------
    Description: 
UPDATE statements can't be cloned, throws an error and write this error to log, 
when trying to hide sensitive information.

To reproduce, line:
{code:java}
sql(grid(0), "UPDATE test_sens SET val = 'sensitive7' WHERE id = 6");  {code}
Can be added to SqlDiagnosticIntegrationTest#testSensitiveInformationHiding
Warning in the log:
{noformat}
[2025-12-25T17:09:14,015][WARN 
][test-runner-#257%integration.SqlDiagnosticIntegrationTest%][CalciteQueryProcessor]
 Unable to remove sensitive information from SQL node of class: 
org.apache.calcite.sql.SqlUpdate
 java.lang.UnsupportedOperationException: class 
org.apache.calcite.sql.SqlSyntax$7: SPECIAL
        at org.apache.calcite.util.Util.needToImplement(Util.java:1112) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlSyntax$7.unparse(SqlSyntax.java:129) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:414) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:467) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:140) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlNode.toSqlString(SqlNode.java:157) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlNode.toString(SqlNode.java:132) 
~[calcite-core-1.40.0.jar:1.40.0]
        at 
org.apache.ignite.internal.processors.query.calcite.CalciteQueryProcessor.removeSensitive(CalciteQueryProcessor.java:659)
 [classes/:?]
{noformat}

  was:
UPDATE statements can be cloned, throws an error and write this error to log, 
when trying to hide sensitive information.

To reproduce, line:
{code:java}
sql(grid(0), "UPDATE test_sens SET val = 'sensitive7' WHERE id = 6");  {code}
Can be added to SqlDiagnosticIntegrationTest#testSensitiveInformationHiding
Warning in the log:
{noformat}
[2025-12-25T17:09:14,015][WARN 
][test-runner-#257%integration.SqlDiagnosticIntegrationTest%][CalciteQueryProcessor]
 Unable to remove sensitive information from SQL node of class: 
org.apache.calcite.sql.SqlUpdate
 java.lang.UnsupportedOperationException: class 
org.apache.calcite.sql.SqlSyntax$7: SPECIAL
        at org.apache.calcite.util.Util.needToImplement(Util.java:1112) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlSyntax$7.unparse(SqlSyntax.java:129) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:414) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:467) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:140) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlNode.toSqlString(SqlNode.java:157) 
~[calcite-core-1.40.0.jar:1.40.0]
        at org.apache.calcite.sql.SqlNode.toString(SqlNode.java:132) 
~[calcite-core-1.40.0.jar:1.40.0]
        at 
org.apache.ignite.internal.processors.query.calcite.CalciteQueryProcessor.removeSensitive(CalciteQueryProcessor.java:659)
 [classes/:?]
{noformat}


> Calcite engine. Update statement produce warning in log in "hide sensitive" 
> mode
> --------------------------------------------------------------------------------
>
>                 Key: IGNITE-27459
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27459
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Priority: Major
>              Labels: calcite, ise
>
> UPDATE statements can't be cloned, throws an error and write this error to 
> log, when trying to hide sensitive information.
> To reproduce, line:
> {code:java}
> sql(grid(0), "UPDATE test_sens SET val = 'sensitive7' WHERE id = 6");  {code}
> Can be added to SqlDiagnosticIntegrationTest#testSensitiveInformationHiding
> Warning in the log:
> {noformat}
> [2025-12-25T17:09:14,015][WARN 
> ][test-runner-#257%integration.SqlDiagnosticIntegrationTest%][CalciteQueryProcessor]
>  Unable to remove sensitive information from SQL node of class: 
> org.apache.calcite.sql.SqlUpdate
>  java.lang.UnsupportedOperationException: class 
> org.apache.calcite.sql.SqlSyntax$7: SPECIAL
>       at org.apache.calcite.util.Util.needToImplement(Util.java:1112) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlSyntax$7.unparse(SqlSyntax.java:129) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:414) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:467) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:140) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlNode.toSqlString(SqlNode.java:157) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at org.apache.calcite.sql.SqlNode.toString(SqlNode.java:132) 
> ~[calcite-core-1.40.0.jar:1.40.0]
>       at 
> org.apache.ignite.internal.processors.query.calcite.CalciteQueryProcessor.removeSensitive(CalciteQueryProcessor.java:659)
>  [classes/:?]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to