yaooqinn commented on code in PR #3425:
URL: https://github.com/apache/incubator-kyuubi/pull/3425#discussion_r966846176
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala:
##########
@@ -335,13 +381,20 @@ object PrivilegesBuilder {
case "CreateTableAsSelect" |
"ReplaceTableAsSelect" =>
- val left = getPlanField[LogicalPlan]("name")
- left.nodeName match {
- case "ResolvedDBObjectName" =>
- val nameParts = getPlanField[Seq[String]]("nameParts")
- val db = Some(quote(nameParts.init))
- outputObjs += tablePrivileges(TableIdentifier(nameParts.last, db))
- case _ =>
+ val tableIdent = getFieldValOption[Identifier](plan, "tableName")
Review Comment:
ditto
--
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]