[
https://issues.apache.org/jira/browse/CALCITE-7080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017667#comment-18017667
]
Dmitry Sysolyatin edited comment on CALCITE-7080 at 9/2/25 1:10 PM:
--------------------------------------------------------------------
Fixed in [8dc4cbf
|https://github.com/apache/calcite/commit/8dc4cbf2c128c1346f6af612907ffa6b6f20f69c].
Thanks you [~MasseGuillaume]!
was (Author: dmsysolyatin):
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)