xuanyuanking commented on a change in pull request #29756:
URL: https://github.com/apache/spark/pull/29756#discussion_r493279767
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -895,10 +896,12 @@ class Analyzer(
object ResolveTables extends Rule[LogicalPlan] {
def apply(plan: LogicalPlan): LogicalPlan =
ResolveTempViews(plan).resolveOperatorsUp {
case u: UnresolvedRelation =>
- lookupV2Relation(u.multipartIdentifier, u.options)
- .map { rel =>
- val ident = rel.identifier.get
- SubqueryAlias(rel.catalog.get.name +: ident.namespace :+
ident.name, rel)
+ lookupV2Relation(u.multipartIdentifier, u.options, u.isStreaming)
+ .map {
+ case rel: DataSourceV2Relation =>
+ val ident = rel.identifier.get
+ SubqueryAlias(rel.catalog.get.name +: ident.namespace :+
ident.name, rel)
Review comment:
Sure, done in fad1976.
----------------------------------------------------------------
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]