Skip to content

Simplify dictionary sort - #4605

Merged
tustvold merged 1 commit into
apache:masterfrom
tustvold:simplify-sort-dictionary
Aug 1, 2023
Merged

tustvold merged 1 commit into
apache:masterfrom
tustvold:simplify-sort-dictionary

Conversation

@tustvold

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

Whilst reviewing the code I noticed there was no reason for this special casing, as the comparison is done based on the computed value ranks, not the values themselves

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jul 31, 2023
Comment thread arrow-ord/src/sort.rs
null_indices: Vec<u32>,
options: SortOptions,
limit: Option<usize>,
cmp: F,

@tustvold tustvold Jul 31, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This argument was always just passed PartialOrd::cmp and so there was no reason to make it generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants