xtern commented on code in PR #2915:
URL: https://github.com/apache/ignite-3/pull/2915#discussion_r1417754524


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/sql/IgniteSqlParserTest.java:
##########
@@ -148,6 +150,51 @@ public void testInvalidDecimalLiteral() {
                 () -> IgniteSqlParser.parse("SELECT decimal '2a'", 
StatementParseResult.MODE));
     }
 
+    @ParameterizedTest
+    @MethodSource("dmlStatements")
+    public void testDmlStatementsClone(String stmt) {
+        StatementParseResult single = IgniteSqlParser.parse(stmt, 
StatementParseResult.MODE);

Review Comment:
   Seems that similar test for DDL statement may fail.
   
   For example  `DROP TABLE TEST` produces the following error:
   
   ```
   java.lang.UnsupportedOperationException: class 
org.apache.calcite.sql.SqlSyntax$7: SPECIAL
   
        at org.apache.calcite.util.Util.needToImplement(Util.java:1119)
        at org.apache.calcite.sql.SqlSyntax$7.unparse(SqlSyntax.java:129)
        at org.apache.calcite.sql.SqlOperator.unparse(SqlOperator.java:385)
        at org.apache.calcite.sql.SqlDialect.unparseCall(SqlDialect.java:466)
        at org.apache.calcite.sql.SqlCall.unparse(SqlCall.java:131)
        at org.apache.calcite.sql.SqlNode.toSqlString(SqlNode.java:156)
        at org.apache.calcite.sql.SqlNode.toString(SqlNode.java:131)
   ```
   
   Is it ok?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to