zhang1002 commented on a change in pull request #1037:
URL: https://github.com/apache/incubator-kyuubi/pull/1037#discussion_r703456615
##########
File path:
dev/kyuubi-extension-spark-3-1/src/main/resources/sql-classification-default.json
##########
@@ -1,34 +1,60 @@
{
"AlterDatabasePropertiesCommand": "ddl",
- "AlterTableRenameCommand": "ddl",
- "AlterTableRenamePartitionCommand": "ddl",
"AlterTableAddColumnsCommand": "ddl",
- "AlterTableChangeColumnCommand": "ddl",
"AlterTableAddPartitionCommand": "ddl",
+ "AlterTableChangeColumnCommand": "ddl",
"AlterTableDropPartitionCommand": "ddl",
- "AlterTableSetPropertiesCommand": "ddl",
- "AlterTableSetLocationCommand": "ddl",
- "AlterTableSerDePropertiesCommand": "ddl",
- "AlterTableUnsetPropertiesCommand": "ddl",
+ "AlterTableRecoverPartitionsCommand": "ddl",
+ "AlterTableRenameCommand": "ddl",
"AlterTableRenameCommand": "ddl",
+ "AlterTableRenamePartitionCommand": "ddl",
+ "AlterTableSerDePropertiesCommand": "ddl",
+ "AlterTableSetLocationCommand": "ddl",
"AlterTableSetPropertiesCommand": "ddl",
+ "AlterTableSetPropertiesCommand": "ddl",
+ "AlterTableUnsetPropertiesCommand": "ddl",
"AlterTableUnsetPropertiesCommand": "ddl",
"AlterViewAsCommand": "ddl",
+ "CreateDataSourceTableAsSelectCommand": "ddl",
+ "CreateDataSourceTableCommand": "ddl",
"CreateDatabaseCommand": "ddl",
"CreateFunctionCommand": "ddl",
- "CreateDataSourceTableCommand": "ddl",
- "CreateDataSourceTableAsSelectCommand": "ddl",
"CreateTableLikeCommand": "ddl",
"CreateViewCommand": "ddl",
"DropDatabaseCommand": "ddl",
"DropFunctionCommand": "ddl",
- "NoopDropTable": "ddl",
"DropTableCommand": "ddl",
- "TruncateTableCommand": "ddl",
- "AlterTableRecoverPartitionsCommand": "ddl",
+ "NoopDropTable": "ddl",
"SetCatalogAndNamespace": "ddl",
+ "TruncateTableCommand": "ddl",
Review comment:
we support the user use the self-defined matching rule. if the grammar
have added or you want to change some classification for the sql, you can
self-defined matching rule with jsonFile named "sql-classification.json". The
code will upload your jsonFile.
--
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]