viirya commented on a change in pull request #26338: [SPARK-29680][SQL] ALTER
TABLE CHANGE COLUMN should look up catalog/table like v2 commands
URL: https://github.com/apache/spark/pull/26338#discussion_r341002846
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala
##########
@@ -369,6 +369,13 @@ class ResolveSessionCatalog(
AlterTableRecoverPartitionsCommand(
v1TableName.asTableIdentifier,
"ALTER TABLE RECOVER PARTITIONS")
+
+ case AlterTableChangeColumnStatement(tableName, columnName, newColumn) =>
+ val v1TableName = parseV1Table(tableName, "ALTER TABLE CHANGE COLUMN")
Review comment:
Seems this command can also work on V2, if old column name and new column
name is the same. cc @cloud-fan
----------------------------------------------------------------
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]