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

    https://github.com/apache/spark/pull/22141#discussion_r211971929
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala
 ---
    @@ -137,13 +137,21 @@ object RewritePredicateSubquery extends 
Rule[LogicalPlan] with PredicateHelper {
           plan: LogicalPlan): (Option[Expression], LogicalPlan) = {
         var newPlan = plan
         val newExprs = exprs.map { e =>
    -      e transformUp {
    +      e transformDown {
    --- End diff --
    
    @mgaido91 
    >> I don't see any test (please correct me if I am wrong) where multiple 
attributes are used as output of the subquery. Can we add and compare with 
other RDBMS? Thanks.
    
    In 
[here](https://github.com/apache/spark/blob/844a3ff82a688e7398bb130a44750aec78420698/sql/core/src/test/resources/sql-tests/inputs/subquery/in-subquery/nested-not-in.sql#L113-L134)
 ? Is this what you meant ?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to