cloud-fan commented on a change in pull request #31273:
URL: https://github.com/apache/spark/pull/31273#discussion_r579007420
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala
##########
@@ -129,10 +129,10 @@ case class CreateViewCommand(
sparkSession,
analyzedPlan,
aliasedPlan.schema,
- originalText,
- child))
+ originalText))
} else {
- aliasedPlan
+ assert(isTemporary)
Review comment:
we are in the branch of `if (viewType == LocalTempView)`, this assert
seems not necessary, as the if condition is not far away.
----------------------------------------------------------------
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]