You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "luoyuxia (via GitHub)" <gi...@apache.org> on 2023/06/01 06:42:31 UTC

[GitHub] [calcite] luoyuxia commented on a diff in pull request #3187: [CALCITE-5688] Support TRUNCATE TABLE DDL statement in Babel parser

luoyuxia commented on code in PR #3187:
URL: https://github.com/apache/calcite/pull/3187#discussion_r1212661901


##########
core/src/main/java/org/apache/calcite/sql/SqlKind.java:
##########
@@ -1171,7 +1174,7 @@ public enum SqlKind {
   public static final EnumSet<SqlKind> DDL =
       EnumSet.of(COMMIT, ROLLBACK, ALTER_SESSION,
           CREATE_SCHEMA, CREATE_FOREIGN_SCHEMA, DROP_SCHEMA,
-          CREATE_TABLE, ALTER_TABLE, DROP_TABLE,
+          CREATE_TABLE, ALTER_TABLE, DROP_TABLE, TRUNCATE_TABLE,

Review Comment:
   Not very sure why truncate table is kind of ddl statement.



-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org