imback82 commented on a change in pull request #31424:
URL: https://github.com/apache/spark/pull/31424#discussion_r569152899
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1144,18 +1144,20 @@ class Analyzer(override val catalogManager:
CatalogManager)
lookupRelation(u.multipartIdentifier, u.options, u.isStreaming)
.map(resolveViews).getOrElse(u)
- case u @ UnresolvedTable(identifier, cmd) =>
+ case u @ UnresolvedTable(identifier, cmd, relationTypeMismatchHint) =>
lookupTableOrView(identifier).map {
- case v: ResolvedView => throw
QueryCompilationErrors.expectTableNotViewError(v, cmd, u)
+ case v: ResolvedView =>
Review comment:
@cloud-fan looks like I missed handling this in `ResolveTempViews`. I
will create a follow up PR. Sorry about that.
----------------------------------------------------------------
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]