Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a degenerative join in test_dpp_reuse_broadcast_exchange [databricks] #10168

Merged
merged 8 commits into from
Jan 10, 2024
4 changes: 3 additions & 1 deletion integration_tests/src/main/python/dpp_test.py
jlowe marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def fn(spark):
('key', IntegerGen(nullable=False, min_val=0, max_val=9, special_cases=[])),
('skey', IntegerGen(nullable=False, min_val=0, max_val=4, special_cases=[])),
('ex_key', IntegerGen(nullable=False, min_val=0, max_val=3, special_cases=[])),
('value', int_gen),
# non-positive values here can produce a degenerative join, so we want a filter value associated
# with only positive values. See https://github.com/NVIDIA/spark-rapids/issues/10147
('value', IntegerGen(min_val=1, special_cases=[1, INT_MAX])),
jlowe marked this conversation as resolved.
Show resolved Hide resolved
# specify nullable=False for `filter` to avoid generating invalid SQL with
# expression `filter = None` (https://github.com/NVIDIA/spark-rapids/issues/9817)
('filter', RepeatSeqGen(
Expand Down