imback82 commented on a change in pull request #31933:
URL: https://github.com/apache/spark/pull/31933#discussion_r599257472
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -167,6 +167,9 @@ trait CheckAnalysis extends PredicateHelper with
LookupCatalog {
case _: ShowTableExtended =>
throw new AnalysisException("SHOW TABLE EXTENDED is not supported for
v2 tables.")
+ case c: Command =>
+ c.plansToCheckAnalysis.foreach(checkAnalysis)
Review comment:
This seems hacky? But we cannot make the analyzed plan as `children` for
`CreateViewCommaned`. The reason is that the `View` will be optimized away (in
the optimizer), and the verification that checks if a permanent view references
temp views will fail.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]