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

    https://github.com/apache/spark/pull/16012#discussion_r89664100
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ---
    @@ -989,7 +989,7 @@ class Analyzer(
                   withPosition(u) {
                     try {
                       outer.resolve(nameParts, resolver) match {
    -                    case Some(outerAttr) => OuterReference(outerAttr)
    +                    case Some(outerAttr) => OuterReference(outerAttr)()
    --- End diff --
    
    Another interesting case to consider:
    ````sql
    select ...
    from   t1
    where  t1.c1 in (select sum(t1.c2) from t2)
    ````
    
    If we support correlated columns in SELECT clause, do we build the 
Aggregate on T2 or T1?


---
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]

Reply via email to