zml1206 commented on code in PR #5636:
URL: https://github.com/apache/kyuubi/pull/5636#discussion_r1384530068
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/AccessType.scala:
##########
@@ -69,7 +69,7 @@ object AccessType extends Enumeration {
SHOWTABLES |
SHOWFUNCTIONS |
DESCFUNCTION => USE
- case TRUNCATETABLE => UPDATE
+ case TRUNCATETABLE | OPTIMIZETABLE => UPDATE
Review Comment:
`ALTER` is used to modify metadata data of object, `UPDATE` is used to
modify physical data of object. `OPTIMIZETABLE` merged the files to generate a
new version. Although the data results have not changed, the data files have
changed, so is UPDATE more appropriate?
--
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]