Skip to content

feat: add min max aggregate support for FixedSizeBinary #7675

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

alexwilcoxson-rel
Copy link
Contributor

Which issue does this PR close?

Closes #7674.

Rationale for this change

Adding support for these min/max functions so DataFusion can utilize them

What changes are included in this PR?

Added new min and max functions for fixed size binary and updated existing tests.

Are there any user-facing changes?

Yes new functions min_fixed_size_binary and max_fixed_size_binary added.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 16, 2025
Copy link
Contributor

@HawaiianSpork HawaiianSpork left a comment

Choose a reason for hiding this comment

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

Thank you for doing this

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution @alexwilcoxson-rel and thank you for the review @HawaiianSpork 🙏

@@ -1240,6 +1250,41 @@ mod tests {
assert!(max(&a).unwrap().is_nan());
}

fn pad_inputs_and_test_fixed_size_binary(
Copy link
Contributor

Choose a reason for hiding this comment

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

this is quite clever 💯

@alamb alamb merged commit 75008eb into apache:main Jun 20, 2025
13 checks passed
@alamb
Copy link
Contributor

alamb commented Jun 20, 2025

Thanks again @alexwilcoxson-rel and @HawaiianSpork

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.

Add min max aggregates for FixedSizeBinary
3 participants