cloud-fan commented on code in PR #53646:
URL: https://github.com/apache/spark/pull/53646#discussion_r2661686980
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/RelationResolution.scala:
##########
@@ -274,8 +274,7 @@ class RelationResolution(
private def loadRelation(ref: V2TableReference): LogicalPlan = {
val table = ref.catalog.loadTable(ref.identifier)
V2TableReferenceUtils.validateLoadedTable(table, ref)
- val tableName = ref.identifier.toQualifiedNameParts(ref.catalog)
- SubqueryAlias(tableName, ref.toRelation(table))
+ ref.toRelation(table)
Review Comment:
`V2TableReference` was created from v2 relation, and should be restored back
to v2 relation, without `SubqueryAlias`, so that it's a round trip.
--
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]