HIVE-29688: IndexOutOfBoundsException when WHERE clause contains IN/EXISTS subqueries AND correlated conditions#6572
Conversation
|
CI error seems unrelated to the PR, looks like this known issue: https://issues.apache.org/jira/browse/HIVE-29684 |
zabetak
left a comment
There was a problem hiding this comment.
LGTM! Left some minor test improvements.
…elation variables only in LHS
|
Thanks for the review @zabetak . I have refactored both tests (which showed different exceptions, both fixed with this patch) on the same file, using real data from part table. |
|
|
The last CI run (https://ci.hive.apache.org/job/hive-precommit/job/PR-6572/4/) had an OOM error in |



What changes were proposed in this pull request?
Avoid the problem by forbidding HiveFilterJoinRule to push down predicates containing correlating variables.
Why are the changes needed?
This avoids an IndexOutOfBoundsException while decorrelating this type of plans.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
New q files.