AngersZhuuuu commented on code in PR #5287:
URL: https://github.com/apache/kyuubi/pull/5287#discussion_r1354852855
##########
extensions/spark/kyuubi-spark-authz/pom.xml:
##########
@@ -336,6 +336,18 @@
</build>
<profiles>
+ <profile>
+ <id>hudi</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hudi</groupId>
+
<artifactId>hudi-spark${hudi.spark.binary.version}-bundle_2.12</artifactId>
+ <version>${hudi.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
Review Comment:
Avoid import hudi jar when enable scala 2.13 so add this profile cc @pan3793
@yaooqinn
We can remove this after hudi support scala 2.13
##########
extensions/spark/kyuubi-spark-authz/src/main/resources/table_command_spec.json:
##########
@@ -1409,4 +1409,87 @@
"fieldName" : "query",
"fieldExtractor" : "LogicalPlanQueryExtractor"
} ]
+}, {
+ "classname" :
"org.apache.spark.sql.hudi.command.AlterHoodieTableAddColumnsCommand",
+ "tableDescs" : [ {
+ "fieldName" : "tableId",
+ "fieldExtractor" : "TableIdentifierTableExtractor",
+ "columnDesc" : {
+ "fieldName" : "colsToAdd",
+ "fieldExtractor" : "StructFieldSeqColumnExtractor"
+ },
+ "actionTypeDesc" : null,
+ "tableTypeDesc" : null,
+ "catalogDesc" : null,
+ "isInput" : false,
+ "setCurrentDatabaseIfMissing" : false
+ } ],
+ "opType" : "ALTERTABLE_ADDCOLS",
+ "queryDescs" : [ ]
+}, {
+ "classname" :
"org.apache.spark.sql.hudi.command.AlterHoodieTableChangeColumnCommand",
+ "tableDescs" : [ {
+ "fieldName" : "tableIdentifier",
+ "fieldExtractor" : "TableIdentifierTableExtractor",
+ "columnDesc" : {
+ "fieldName" : "columnName",
+ "fieldExtractor" : "StringColumnExtractor"
+ },
+ "actionTypeDesc" : null,
+ "tableTypeDesc" : null,
+ "catalogDesc" : null,
+ "isInput" : false,
+ "setCurrentDatabaseIfMissing" : false
+ } ],
+ "opType" : "ALTERTABLE_REPLACECOLS",
+ "queryDescs" : [ ]
+}, {
+ "classname" :
"org.apache.spark.sql.hudi.command.AlterHoodieTableDropPartitionCommand",
+ "tableDescs" : [ {
+ "fieldName" : "tableIdentifier",
+ "fieldExtractor" : "TableIdentifierTableExtractor",
+ "columnDesc" : {
+ "fieldName" : "partitionSpecs",
+ "fieldExtractor" : "PartitionSeqColumnExtractor"
+ },
+ "actionTypeDesc" : null,
+ "tableTypeDesc" : null,
+ "catalogDesc" : null,
+ "isInput" : false,
+ "setCurrentDatabaseIfMissing" : false
+ } ],
+ "opType" : "ALTERTABLE_DROPPARTS",
+ "queryDescs" : [ ]
+}, {
+ "classname" :
"org.apache.spark.sql.hudi.command.AlterHoodieTableRenameCommand",
+ "tableDescs" : [ {
+ "fieldName" : "oldName",
+ "fieldExtractor" : "TableIdentifierTableExtractor",
+ "columnDesc" : null,
+ "actionTypeDesc" : null,
+ "tableTypeDesc" : {
+ "fieldName" : "oldName",
+ "fieldExtractor" : "TableIdentifierTableTypeExtractor",
+ "skipTypes" : [ "TEMP_VIEW" ]
+ },
+ "catalogDesc" : null,
+ "isInput" : false,
+ "setCurrentDatabaseIfMissing" : false
+ } ],
+ "opType" : "ALTERTABLE_RENAME",
+ "queryDescs" : [ ]
+}, {
+ "classname" : "org.apache.spark.sql.hudi.command.AlterTableCommand",
+ "tableDescs" : [ {
+ "fieldName" : "table",
+ "fieldExtractor" : "CatalogTableTableExtractor",
+ "columnDesc" : null,
+ "actionTypeDesc" : null,
+ "tableTypeDesc" : null,
+ "catalogDesc" : null,
+ "isInput" : false,
+ "setCurrentDatabaseIfMissing" : false
+ } ],
+ "opType" : "QUERY",
Review Comment:
This command was removed from hudi 0.14, so here just use a QUERY(discuss
offline with @yaooqinn ) since it won't impact.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]