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

xzh_dz updated CALCITE-4022:
----------------------------
    Description: 
{code:java}
final String sql = "insert into emps select * from emps";
    final SqlNode sqlNode = getSqlParser(sql).parseStmt();
    final SqlNode sqlNodeVisited = sqlNode.accept(new SqlShuttle() {
      @Override public SqlNode visit(SqlIdentifier identifier) {
        return new SqlIdentifier(identifier.names,
            identifier.getParserPosition());
      }
    });
{code}
 !image-2020-05-25-17-38-36-009.png! 


  was:
{code:java}
SqlNode a = sqlNode.accept(new SqlShuttle() {
      @Override public SqlNode visit(SqlIdentifier identifier) {
        return new SqlIdentifier(identifier.names,
            identifier.getParserPosition());
      }
    });
{code}
 !image-2020-05-25-17-38-36-009.png! 



> After SqlInsert is traversed by SqlShuttle, SqlBasicCall throws 
> UnsupportedOperationException
> ---------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-4022
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4022
>             Project: Calcite
>          Issue Type: Wish
>            Reporter: xzh_dz
>            Priority: Major
>         Attachments: image-2020-05-25-17-38-36-009.png, screenshot-1.png
>
>
> {code:java}
> final String sql = "insert into emps select * from emps";
>     final SqlNode sqlNode = getSqlParser(sql).parseStmt();
>     final SqlNode sqlNodeVisited = sqlNode.accept(new SqlShuttle() {
>       @Override public SqlNode visit(SqlIdentifier identifier) {
>         return new SqlIdentifier(identifier.names,
>             identifier.getParserPosition());
>       }
>     });
> {code}
>  !image-2020-05-25-17-38-36-009.png! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to