You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2026/04/28 01:34:39 UTC

[PR] feat: default to sort-based shuffle writer [datafusion-ballista]

andygrove opened a new pull request, #1604:
URL: https://github.com/apache/datafusion-ballista/pull/1604

   # Which issue does this PR close?
   
   Closes #.
   
   # Rationale for this change
   
   The sort-based shuffle writer (added recently and documented in #1595) writes `2 x N` consolidated files with an index instead of the hash-based writer's `N x M` files, coalesces small batches, and bounds shuffle memory via spill. For most workloads, especially those with high partition fan-out, this is the better default. Now that it has integration test coverage and documentation in the tuning guide, it makes sense to make it the default for new sessions while keeping the hash-based writer reachable via configuration.
   
   # What changes are included in this PR?
   
   - Flip the default of `ballista.shuffle.sort_based.enabled` from `false` to `true` in `ballista/core/src/config.rs`.
   - Update `docs/source/user-guide/configs.md` to show the new default and a note about falling back to the hash writer.
   - Restructure the "Shuffle Implementation" section of `docs/source/user-guide/tuning-guide.md` so sort-based is presented as the default and hash-based as the opt-in fallback.
   
   # Are there any user-facing changes?
   
   Yes. New sessions will use the sort-based shuffle writer by default. Users who want the previous behavior can set `ballista.shuffle.sort_based.enabled=false` per session.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: default to sort-based shuffle writer [WIP] [datafusion-ballista]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed pull request #1604: feat: default to sort-based shuffle writer [WIP]
URL: https://github.com/apache/datafusion-ballista/pull/1604


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: default to sort-based shuffle writer [WIP] [datafusion-ballista]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on PR #1604:
URL: https://github.com/apache/datafusion-ballista/pull/1604#issuecomment-4332345880

   I closed this and will make sure that we can support the more efficient
   block transport for sort based shuffle - this is what we do in comet
   already
   
   I learned a lot from from the experiments today and will approach this a
   bit more methodically in the next few days
   
   On Mon, Apr 27, 2026 at 10:20 PM Marko Milenković ***@***.***>
   wrote:
   
   > *milenkovicm* left a comment (apache/datafusion-ballista#1604)
   > <https://github.com/apache/datafusion-ballista/pull/1604#issuecomment-4332323100>
   >
   > U suggest going back to flight if it's required for sort shuttle, which
   > obviously has benefits
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/datafusion-ballista/pull/1604#issuecomment-4332323100>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAHEBRBGLMQUQJDUKDBFAOD4YAWPVAVCNFSM6AAAAACYIVOSRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGMZSGMZDGMJQGA>
   > .
   > You are receiving this because you modified the open/close state.Message
   > ID: ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: default to sort-based shuffle writer [datafusion-ballista]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on PR #1604:
URL: https://github.com/apache/datafusion-ballista/pull/1604#issuecomment-4332073664

   I need to learn more about block vs flight before we make this change


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: default to sort-based shuffle writer [WIP] [datafusion-ballista]

Posted by "milenkovicm (via GitHub)" <gi...@apache.org>.
milenkovicm commented on PR #1604:
URL: https://github.com/apache/datafusion-ballista/pull/1604#issuecomment-4332323100

   U suggest going back to flight if it's required for sort shuttle, which obviously has benefits 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org