Skip to content

Optimize repartitioning logic in ShuffleWriterExec using interleave_record_batch #1235

New issue

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

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

Already on GitHub? Sign in to your account

Closed
andygrove opened this issue Jan 8, 2025 · 1 comment · Fixed by #1511
Closed
Labels
enhancement New feature or request performance
Milestone

Comments

@andygrove
Copy link
Member

What is the problem the feature request solves?

In ShfufleWriterExec, we copy data from each input RecordBatch into array builders for each partition and once a partition reaches the specified row count, we create an output batch.

Arrow provides an interleave_record_batch kernel that we could potentially use instead of the builder approach.

https://docs.rs/arrow/latest/arrow/compute/fn.interleave_record_batch.html

Describe the potential solution

Let's POC this and see if it helps with performance.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant