You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/02/13 12:43:42 UTC

[GitHub] [spark] chenzhx commented on a change in pull request #35361: [SPARK-37932][SQL] Fix view bug when using join in duplicate views

chenzhx commented on a change in pull request #35361:
URL: https://github.com/apache/spark/pull/35361#discussion_r805329375



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1200,6 +1200,11 @@ class Analyzer(override val catalogManager: CatalogManager)
                 val newRelation = multi.newInstance()
                 newRelation.copyTagsFrom(multi)
                 newRelation
+              case view @ View(_, _, child: LogicalPlan) =>

Review comment:
       It is because the cast as in the view is not replaced with a new attribute, that an error occurs when the rule DeduplicateRelations is executed.




-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org