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



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -3469,9 +3469,14 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with 
SQLConfHelper with Logg
       case _ =>
         // Note: table schema includes both the table columns list and the 
partition columns
         // with data type.
+        val tableSpec = TableSpec(bucketSpec, properties, provider, options, 
location, comment,
+          serdeInfo, external)
         val schema = StructType(columns ++ partCols)
-        CreateTableStatement(table, schema, partitioning, bucketSpec, 
properties, provider,
-          options, location, comment, serdeInfo, external = external, 
ifNotExists = ifNotExists)
+        CreateTable(
+          UnresolvedDBObjectName(
+            table,
+            isNamespace = false),

Review comment:
       ```suggestion
             UnresolvedDBObjectName(table, isNamespace = false),
   ```




-- 
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