dongjoon-hyun commented on a change in pull request #26219: [SPARK-29563][SQL]
CREATE TABLE LIKE should look up catalog/table like v2 commands
URL: https://github.com/apache/spark/pull/26219#discussion_r338789551
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala
##########
@@ -294,6 +294,11 @@ class ResolveSessionCatalog(
ShowPartitionsCommand(
v1TableName.asTableIdentifier,
partitionSpec)
+
+ case CreateTableLikeStatement(targetTable, sourceTable, location,
ifNotExists) =>
+ val v1targetTable = parseV1Table(targetTable, "CREATE TABLE
LIKE").asTableIdentifier
+ val v1sourceTable = parseV1Table(sourceTable, "CREATE TABLE
LIKE").asTableIdentifier
+ CreateTableLikeCommand(v1targetTable, v1sourceTable, location,
ifNotExists)
Review comment:
Shall we move this to line 218?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]