[
https://issues.apache.org/jira/browse/CALCITE-6102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17785716#comment-17785716
]
Jiajun Xie commented on CALCITE-6102:
-------------------------------------
[~jiefei30] You clearly explained the reason.
If there were SQL examples to help users understand, it would be even better.
> SqlWriter in SqlInsert's unparse start a list but does not end it
> -----------------------------------------------------------------
>
> Key: CALCITE-6102
> URL: https://issues.apache.org/jira/browse/CALCITE-6102
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.35.0
> Reporter: Mingcan Wang
> Assignee: Mingcan Wang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.37.0
>
>
> SqlWriter in SqlInsert's unparse() start a list but does not end it.
> if we put a SqlInsert into a SqlWith's body, when we unparse the SqlWith , it
> will throw an Expception :
>
> java.lang.IllegalArgumentException: Frame does not match current frame
>
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
> at
> org.apache.calcite.sql.pretty.SqlPrettyWriter.endList(SqlPrettyWriter.java:884)
> at org.apache.calcite.sql.SqlWith$SqlWithOperator.unparse(SqlWith.java:109)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)