cloud-fan commented on a change in pull request #34060:
URL: https://github.com/apache/spark/pull/34060#discussion_r755773462



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala
##########
@@ -263,6 +265,51 @@ case class PreprocessTableCreation(sparkSession: 
SparkSession) extends Rule[Logi
 
         create.withPartitioning(normalizedPartitions)
       }
+
+    case create: V2CreateTablePlanX if create.childrenResolved =>
+      val schema = create.tableSchema
+      val partitioning = create.partitioning
+      val name = create.name.asInstanceOf[ResolvedDBObjectName].nameParts
+      val identifier = if (name.length == 2) {
+        Identifier.of(Array(name(0)), name(1))
+      } else {
+        Identifier.of(Array.empty, name(0))

Review comment:
       what if the `name` has more than 2 parts?




-- 
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: reviews-unsubscr...@spark.apache.org

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



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

Reply via email to