imback82 commented on a change in pull request #30636:
URL: https://github.com/apache/spark/pull/30636#discussion_r538072744
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -104,6 +104,15 @@ trait CheckAnalysis extends PredicateHelper {
case u: UnresolvedTable =>
u.failAnalysis(s"Table not found for '${u.commandName}':
${u.multipartIdentifier.quoted}")
+ case u @ UnresolvedView(NonSessionCatalogAndIdentifier(catalog, ident),
cmd, _) =>
+ u.failAnalysis(
+ s"Cannot specify catalog `${catalog.name}` for view ${ident.quoted}
" +
+ "because view support in v2 catalog has not been implemented yet.
" +
+ s"$cmd expects a view.")
+
+ case u: UnresolvedView =>
Review comment:
The rule I am thinking is if an expected "type" of relation is not
found. For example, `UnresolvedTable` is resolved to `ResolvedView` or
`UnresolvedView` is resolved to `ResolvedTable`.
----------------------------------------------------------------
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]