cloud-fan commented on a change in pull request #34358:
URL: https://github.com/apache/spark/pull/34358#discussion_r736162611
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1162,12 +1010,19 @@ class Analyzer(override val catalogManager:
CatalogManager)
case _ => plan
}
- def apply(plan: LogicalPlan): LogicalPlan = ResolveTempViews(plan).
- resolveOperatorsUpWithPruning(AlwaysProcess.fn, ruleId) {
+ private def unwrapRelationPlan(plan: LogicalPlan): LogicalPlan = {
+ EliminateSubqueryAliases(plan) match {
+ case v: View if v.isTempViewStoringAnalyzedPlan => v.child
Review comment:
Because we only want to allow inserting into
`spark.read.parquet....createTempView`, not SQL view like `CREATE TEMP VIEW v
AS SELECT ...`
--
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]