Skip to content
New issue

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

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

Already on GitHub? # to your account

Try to make degenerative joins here impossible for these tests [databricks] #10551

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

NVnavkumar
Copy link
Collaborator

@NVnavkumar NVnavkumar commented Mar 5, 2024

Fixes #10147 and fixes #10548.

This should fix the test failures for DPP when AQE is enabled and optimizes out joins that result in empty relations. First, it uses a randomly generated filter value used for all rows that prevents the filter predicate from failing, and also ensures that the ex_key predicate always uses a value that exists in the table.

Signed-off-by: Navin Kumar <navink@nvidia.com>
@NVnavkumar NVnavkumar self-assigned this Mar 5, 2024
@NVnavkumar
Copy link
Collaborator Author

build

jlowe
jlowe previously approved these changes Mar 5, 2024
Copy link
Contributor

@jlowe jlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit that's not mustfix.

statement = _statements[s_index].format(fact_table, dim_table, filter_val)
filter_val, ex_key_val = create_dim_table(dim_table, store_format, length=2000)
statement = _statements[s_index].format(fact_table, dim_table, filter_val, ex_key_val)
print(filter_val, ex_key_val)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug code left here by accident?

Signed-off-by: Navin Kumar <navink@nvidia.com>
@jlowe
Copy link
Contributor

jlowe commented Mar 5, 2024

build

@NVnavkumar NVnavkumar merged commit c875c2f into NVIDIA:branch-24.02 Mar 6, 2024
40 of 41 checks passed
@NvTimLiu NvTimLiu added the bug Something isn't working label Mar 6, 2024
@sameerz sameerz added the test Only impacts tests label Mar 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working test Only impacts tests
Projects
None yet
4 participants