Skip to content
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

Add min_binary and max_binary aggregate kernels #1725

Merged
merged 1 commit into from
May 26, 2022

Conversation

HaoYang670
Copy link
Contributor

Signed-off-by: remzi 13716567376yh@gmail.com

Which issue does this PR close?

Closes #1724.

What changes are included in this PR?

  1. use macro to extract some common expression.
  2. adjust the order of functions. More readable.
  3. more tests.

Are there any user-facing changes?

2 new public functions min_binary and max_binary

Signed-off-by: remzi <13716567376yh@gmail.com>
@github-actions github-actions bot added the arrow Changes to the arrow crate label May 23, 2022
}

#[test]
fn test_binary_min_max_1() {
Copy link
Member

Choose a reason for hiding this comment

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

_1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have a similar test for string:
https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/aggregate.rs#L902-L907

Actually, I don't know why it is named _1, just copy from it.

@alamb alamb changed the title support min_max_binary Add min_binary and max_binary aggregate kernels May 26, 2022
@alamb alamb merged commit 3e9e9df into apache:master May 26, 2022
@alamb
Copy link
Contributor

alamb commented May 26, 2022

Thanks everyone!

@HaoYang670 HaoYang670 deleted the min_max_binary branch May 26, 2022 23:05
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 support in aggregate kernel for BinaryArray
4 participants