Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/13093#discussion_r64153076
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
---
@@ -441,7 +441,15 @@ class Analyzer(
object ResolveRelations extends Rule[LogicalPlan] {
private def lookupTableFromCatalog(u: UnresolvedRelation): LogicalPlan
= {
try {
- catalog.lookupRelation(u.tableIdentifier, u.alias)
+ val table = catalog.lookupRelation(u.tableIdentifier, u.alias)
+ table match {
+ case SubqueryAlias(_, s: SimpleCatalogRelation)
--- End diff --
I'm not sure if this is useful, `SimpleCatalogRelation` is always
unresolved and we can provide better message at `CheckAnalysis` if we want to.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]