xy2953396112 commented on a change in pull request #2014:
URL: https://github.com/apache/calcite/pull/2014#discussion_r455069059
##########
File path: core/src/test/java/org/apache/calcite/sql/parser/SqlParserTest.java
##########
@@ -5818,6 +5818,21 @@ public void subTestIntervalDayFailsValidation() {
assertTrue(sqlNodeVisited.getKind() == SqlKind.INSERT);
}
+ @Test void testSqlInsertSqlBasicCallToString() throws Exception {
+ 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());
+ }
+ });
+ final String str = "INSERT INTO `EMPS`\n"
Review comment:
Thanks, update the code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]