Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Jun 3, 2025

Which issue does this PR close?

Closes #1251

Rationale for this change

Fix a Spark SQL test failure when jvm shuffle is enabled.

What changes are included in this PR?

New test and bug fix.

How are these changes tested?

@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.41%. Comparing base (f09f8af) to head (4f2be8e).
Report is 240 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1840      +/-   ##
============================================
+ Coverage     56.12%   59.41%   +3.29%     
- Complexity      976     1151     +175     
============================================
  Files           119      130      +11     
  Lines         11743    12663     +920     
  Branches       2251     2374     +123     
============================================
+ Hits           6591     7524     +933     
+ Misses         4012     3930      -82     
- Partials       1140     1209      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove andygrove changed the title chore: Add unit test to reproduce issue #1251 fix: Fall back to Spark for aggregate queries with no output attributes Jun 4, 2025
@andygrove andygrove changed the title fix: Fall back to Spark for aggregate queries with no output attributes fix: Handle case where num_cols == 0 in native execution Jun 4, 2025
@andygrove andygrove marked this pull request as ready for review June 4, 2025 01:31
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @andygrove
wondeering why the test is specifc for CometConf.COMET_SHUFFLE_MODE.key -> "jvm")

@andygrove
Copy link
Member Author

lgtm thanks @andygrove wondeering why the test is specifc for CometConf.COMET_SHUFFLE_MODE.key -> "jvm")

This issue only happened in the Spark SQL version of the test when it was using jvm shuffle, but I didn't check if this repro has the same issue with native shuffle.

@andygrove andygrove merged commit ab7a5cd into apache:main Jun 4, 2025
79 checks passed
@andygrove andygrove deleted the issue-1251 branch June 4, 2025 17:21
coderfender pushed a commit to coderfender/datafusion-comet that referenced this pull request Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comet Internal Error: Output column count mismatch: expected 0, got 1

3 participants