yaooqinn commented on code in PR #7065:
URL: https://github.com/apache/kyuubi/pull/7065#discussion_r2094743902


##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/tableExtractors.scala:
##########
@@ -184,6 +184,26 @@ class ExpressionSeqTableExtractor extends TableExtractor {
   }
 }
 
+/**
+ * org.apache.spark.sql.catalyst.plans.logical.AddPartitionField
+ */
+class ArrayBufferTableExtractor extends TableExtractor {
+  override def apply(spark: SparkSession, v1: AnyRef): Option[Table] = {
+    // Iceberg will transform table to ArrayBuffer[String]
+    val expressions = v1.asInstanceOf[Seq[String]]
+    val maybeTable = expressions.length match {

Review Comment:
   ```scala
   v1 match {
    case Seq(tblName) => TableIdentifier(tblName)
    case Seq(dbName, tblName) => TableIdentifier(tblName, Some(dbName))
    case ...
   }



-- 
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: notifications-unsubscr...@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to