cloud-fan commented on a change in pull request #27391: [SPARK-30612][SQL]
Resolve qualified column name with v2 tables
URL: https://github.com/apache/spark/pull/27391#discussion_r373460849
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -812,7 +812,11 @@ class Analyzer(
case i @ InsertIntoStatement(u: UnresolvedRelation, _, _, _, _) if
i.query.resolved =>
lookupV2Relation(u.multipartIdentifier)
- .map(v2Relation => i.copy(table = v2Relation))
+ .map {
+ EliminateSubqueryAliases(_) match {
Review comment:
ah it hasn't been changed yet. I think it's better to let
`CatalogV2Util.loadRelation` still return `DataSourceV2Relation`, and we add
`SubqueryAlias` in the analyzer explicitly.
----------------------------------------------------------------
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]