[KYUUBI #5269][Bug] Dupllicated AnalyzesTablesCommand in kyuubi authz

### _Why are the changes needed?_

To close #5269 .

1.  AnalyzesTablesCommand in table_command_spec  is duplicated and won't be processed
2. The extractor desc of AnalyzesTablesCommand in table_command_spec is wrong

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

### _Was this patch authored or co-authored using generative AI tooling?_

Closes #5270 from AngersZhuuuu/KYUUBI-5269.

Closes #5269

75efc1adb [Angerszhuuuu] Update TableCommands.scala
75a6fa223 [Angerszhuuuu] Update table_command_spec.json

Authored-by: Angerszhuuuu <angers.zhu@gmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
This commit is contained in:
Angerszhuuuu 2023-09-12 13:48:54 +08:00 committed by Kent Yao
parent ef10d69f1b
commit f967f2f8bf
No known key found for this signature in database
GPG Key ID: F7051850A0AF904D
2 changed files with 0 additions and 16 deletions

View File

@ -908,20 +908,6 @@
} ],
"opType" : "ANALYZE_TABLE",
"queryDescs" : [ ]
}, {
"classname" : "org.apache.spark.sql.execution.command.AnalyzeTablesCommand",
"tableDescs" : [ {
"fieldName" : "tableIdent",
"fieldExtractor" : "TableIdentifierTableExtractor",
"columnDesc" : null,
"actionTypeDesc" : null,
"tableTypeDesc" : null,
"catalogDesc" : null,
"isInput" : true,
"setCurrentDatabaseIfMissing" : false
} ],
"opType" : "ANALYZE_TABLE",
"queryDescs" : [ ]
}, {
"classname" : "org.apache.spark.sql.execution.command.CacheTableCommand",
"tableDescs" : [ ],

View File

@ -607,8 +607,6 @@ object TableCommands {
AnalyzeColumn,
AnalyzePartition,
AnalyzeTable,
AnalyzeTable.copy(classname =
"org.apache.spark.sql.execution.command.AnalyzeTablesCommand"),
AppendDataV2,
CacheTable,
CacheTableAsSelect,