cloud-fan commented on code in PR #47759:
URL: https://github.com/apache/spark/pull/47759#discussion_r1717063998
##########
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala:
##########
@@ -373,8 +373,15 @@ class ResolveSessionCatalog(val catalogManager:
CatalogManager)
serdeProperties,
partitionSpec)
- case SetTableLocation(ResolvedV1TableIdentifier(ident), partitionSpec,
location) =>
- AlterTableSetLocationCommand(ident, partitionSpec, location)
+ case SetTableLocation(ResolvedV1TableIdentifier(ident), None, location) =>
+ AlterTableSetLocationCommand(ident, None, location)
+
+ // V2 catalog doesn't support setting partition location yet, we must use
v1 command here.
Review Comment:
not related to table location but is also a followup of
https://github.com/apache/spark/pull/47660 to fix a missing case.
--
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]