zml1206 commented on code in PR #5636:
URL: https://github.com/apache/kyuubi/pull/5636#discussion_r1386314783
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/gen/DeltaCommands.scala:
##########
@@ -53,8 +54,16 @@ object DeltaCommands extends CommandSpecs[TableCommandSpec] {
TableCommandSpec(cmd, Seq(tableDesc), queryDescs = Seq(queryDesc))
}
+ val OptimizeTableCommand = {
+ val cmd = "org.apache.spark.sql.delta.commands.OptimizeTableCommand"
+ val childDesc = TableDesc("child", classOf[ResolvedTableTableExtractor])
+ val tableDesc = TableDesc("tableId",
classOf[TableIdentifierOptionTableExtractor])
+ TableCommandSpec(cmd, Seq(childDesc, tableDesc), OPTIMIZETABLE)
Review Comment:
Do you mean to remove the new OperationType of OPTIMIZETABLE and use MSCK
directly? Is it better to make a difference? After all, they are two kinds of
operations.
--
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]