Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4929#discussion_r27183201
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ---
    @@ -170,21 +170,35 @@ class Analyzer(catalog: Catalog,
        * Replaces [[UnresolvedRelation]]s with concrete relations from the 
catalog.
        */
       object ResolveRelations extends Rule[LogicalPlan] {
    -    def getTable(u: UnresolvedRelation) = {
    +    def getTable(u: UnresolvedRelation, cteRelations: Map[String, 
LogicalPlan]) = {
           try {
    -        catalog.lookupRelation(u.tableIdentifier, u.alias)
    +          // In hive, if there is same table name in database and CTE 
definition,
    --- End diff --
    
    Intent is off here (2 spaces only).


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to