Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-20094][SQL] Preventing push down of IN subquery to Join operator
## What changes were proposed in this pull request? TPCDS q45 fails becuase: `ReorderJoin` collects all predicates and try to put them into join condition when creating ordered join. If a predicate with an IN subquery (`ListQuery`) is in a join condition instead of a filter condition, `RewritePredicateSubquery.rewriteExistentialExpr` would fail to convert the subquery to an `ExistenceJoin`, and thus result in error. We should prevent push down of IN subquery to Join operator. ## How was this patch tested? Add a new test case in `FilterPushdownSuite`. Author: wangzhenhua <[email protected]> Closes #17428 from wzhfy/noSubqueryInJoinCond.
- Loading branch information