-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unify Sorting Implementations #5879
Labels
enhancement
New feature or request
Comments
This was referenced Apr 5, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 5, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 5, 2023
This was referenced Apr 5, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 29, 2023
tustvold
added a commit
that referenced
this issue
May 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem or challenge?
Currently there is separate logic to handle in-memory sorts, spilling sorts, and merging sorts, spread across
ExternalSorter
,SortPreservingMergeStream
. This logic is incredibly hard to follow, and maintain, and there is a high likelihood of inconsistency between the implementations.Additionally, the in-memory sort implementation currently relies on concatenating batches, which for dictionaries is extremely memory inefficient, as it will concatenate the underlying dictionary values.
Describe the solution you'd like
I would like in-memory sort to proceed by first sorting the batches, and then performing a sort preserving merge
Describe alternatives you've considered
No response
Additional context
This would help with #5230
The text was updated successfully, but these errors were encountered: