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: [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]