cloud-fan commented on a change in pull request #34929:
URL: https://github.com/apache/spark/pull/34929#discussion_r779611578



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1012,6 +1016,24 @@ class Analyzer(override val catalogManager: 
CatalogManager)
         // inside a view maybe resolved incorrectly.
         checkAnalysis(newChild)
         view.copy(child = newChild)
+      case view @ View(_, _, child) =>

Review comment:
       Let's add a comment before this case
   ```
   // This is DataFrame view, not SQL view. We need to reassign CTE IDs as the 
plan
   // is already resolved but the CTE IDs may conflict with main query.
   ```




-- 
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]

Reply via email to