You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Dmitry Sysolyatin (Jira)" <ji...@apache.org> on 2025/09/02 13:11:00 UTC

[jira] [Resolved] (CALCITE-7080) Support unparse special syntax when operator is UPDATE

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

Dmitry Sysolyatin resolved CALCITE-7080.
----------------------------------------
    Resolution: Fixed

Fixed in [8dc4cbf |https://github.com/apache/calcite/commit/8dc4cbf2c128c1346f6af612907ffa6b6f20f69c]. Thanks you [~MasseGuillaume]

> Support unparse special syntax when operator is UPDATE
> ------------------------------------------------------
>
>                 Key: CALCITE-7080
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7080
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.40.0
>            Reporter: Guillaume Massé
>            Assignee: Guillaume Massé
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.41.0
>
>
> {code:java}
> > Task :core:test FAILED
> FAILURE   0.1sec, org.apache.calcite.sql.parser.CoreSqlParserTest > testVisitSqlUpdateWithSqlShuttle()
>     java.lang.UnsupportedOperationException: class org.apache.calcite.sql.SqlSyntax$7: SPECIAL
>         at org.apache.calcite.util.Util.needToImplement(Util.java:1112)
>         at org.apache.calcite.sql.SqlSyntax$7.unparse(SqlSyntax.java:129)
>         at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:414)
>         at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:468)
>         at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:140)
>         at org.apache.calcite.sql.SqlNode.toSqlString(SqlNode.java:157)
>         at org.apache.calcite.sql.SqlNode.toString(SqlNode.java:132)
>         at org.apache.calcite.sql.parser.SqlParserTest.testVisitSqlUpdateWithSqlShuttle(SqlParserTest.java:6592) {code}
> SqlUpdate operator does not override createCall. When we visit a SqlUpdate it will be converted to a SqlBasicCall and it won't call SqlUpdate unparse.



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