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

Fix hash_aggregate_test.py to run with ANSI enabled [databricks] #11219

Merged
merged 6 commits into from
Jul 18, 2024

Conversation

mythrocks
Copy link
Collaborator

Fixes #11018.

This commit fixes the tests in hash_aggregate_test.py to run correctly when run with ANSI enabled. This is essential for running the tests with Spark 4.0, where ANSI mode is on by default.

A vast majority of the tests here happen to exercise aggregations like SUM, COUNT, AVG, etc. which fall to CPU, on account of #5114. These tests have been marked with @disable_ansi_mode, so that they run to completion correctly. These may be revisited after #5114 has been addressed.

In cases where #5114 does not apply, the tests have been modified to run with ANSI on and off.

Fixes NVIDIA#11018.

This commit fixes the hash aggregate tests that fail with ANSI enabled.

These tests fail most visibly on Spark 4.0, where ANSI mode is enabled by default.

Signed-off-by: MithunR <mithunr@nvidia.com>
Most of the rest are borked because of exercising aggregations
like SUM, COUNT, AVG, etc. in ANSI mode.
NVIDIA#5114 sees to it that these aggregations fall to CPU.
@mythrocks mythrocks self-assigned this Jul 18, 2024
@mythrocks
Copy link
Collaborator Author

Build

@mythrocks mythrocks changed the title Fix hash_aggregate_test.py to run with ANSI enabled Fix hash_aggregate_test.py to run with ANSI enabled [databricks] Jul 18, 2024
Copy link
Collaborator

@razajafri razajafri left a comment

Choose a reason for hiding this comment

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

LGTM

@mythrocks mythrocks merged commit 4778639 into NVIDIA:branch-24.08 Jul 18, 2024
43 checks passed
@mythrocks
Copy link
Collaborator Author

Thank you for reviewing, @razajafri. This change has been merged.

@sameerz sameerz added the test Only impacts tests label Nov 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix tests failures in hash_aggregate_test.py
3 participants