imback82 commented on a change in pull request #31273:
URL: https://github.com/apache/spark/pull/31273#discussion_r581616704
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala
##########
@@ -111,12 +111,11 @@ case class CreateViewCommand(
// When creating a permanent view, not allowed to reference temporary
objects.
// This should be called after `qe.assertAnalyzed()` (i.e., `child` can be
resolved)
- verifyTemporaryObjectsNotExists(catalog, isTemporary, name, child)
+ verifyTemporaryObjectsNotExists(catalog, isTemporary, name, analyzedPlan)
Review comment:
`CacheTableAsSelectExec.query` may not be analyzed? (other places seem
fine)
----------------------------------------------------------------
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]