Skip to content

feat: Change default off-heap memory pool from greedy_unified to fair_unified#2526

Merged
mbutrovich merged 3 commits intoapache:mainfrom
andygrove:change-unified-pool-default
Oct 6, 2025
Merged

feat: Change default off-heap memory pool from greedy_unified to fair_unified#2526
mbutrovich merged 3 commits intoapache:mainfrom
andygrove:change-unified-pool-default

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Oct 5, 2025

Which issue does this PR close?

Closes #2452

Rationale for this change

The greedy unified pool does not work well when DataFusion's SortMergeJoin needs to spill.

What changes are included in this PR?

How are these changes tested?

@andygrove andygrove changed the title feat: Change default off-heap memory from from greedy_unified to fair_unified feat: Change default off-heap memory pool from from greedy_unified to fair_unified Oct 5, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.00%. Comparing base (f09f8af) to head (7df6905).
⚠️ Report is 574 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2526      +/-   ##
============================================
+ Coverage     56.12%   59.00%   +2.88%     
- Complexity      976     1457     +481     
============================================
  Files           119      146      +27     
  Lines         11743    13566    +1823     
  Branches       2251     2358     +107     
============================================
+ Hits           6591     8005    +1414     
- Misses         4012     4340     +328     
- Partials       1140     1221      +81     

☔ 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 feat: Change default off-heap memory pool from from greedy_unified to fair_unified feat: Change default off-heap memory pool from greedy_unified to fair_unified Oct 5, 2025
@andygrove andygrove marked this pull request as ready for review October 5, 2025 21:06
Copy link
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

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

Thanks @andygrove! Good find!

@mbutrovich mbutrovich merged commit 4102fb8 into apache:main Oct 6, 2025
110 checks passed
andygrove added a commit to andygrove/datafusion-comet that referenced this pull request Oct 6, 2025
andygrove added a commit that referenced this pull request Oct 6, 2025
@parthchandra
Copy link
Contributor

Good one Andy!

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.

SortMergeJoinExec fails to allocate memory but should spill instead

4 participants