huaxingao commented on a change in pull request #34764:
URL: https://github.com/apache/spark/pull/34764#discussion_r761249365



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -3563,9 +3563,12 @@ 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)

Review comment:
       You may want to move this out of the pattern matching block so it can be 
used by both `ReplaceTableAsSelect` and `ReplaceTable`. 




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

Reply via email to