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

chore: Make binary_mut kernel accept different type for second arg #5833

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Jun 2, 2024

Which issue does this PR close?

Closes #5818.

Rationale for this change

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 Jun 2, 2024
@tustvold tustvold added the api-change Changes to the arrow API label Jun 2, 2024
@tustvold
Copy link
Contributor

tustvold commented Jun 2, 2024

This is technically an API change as it could effect type inference

@viirya
Copy link
Member Author

viirya commented Jun 2, 2024

Thank you @tustvold

@tustvold tustvold merged commit 198af7a into apache:master Jun 3, 2024
14 checks passed
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.

Thanks @viirya

@@ -224,14 +224,15 @@ where
/// This function gives error if the arrays have different lengths.
/// This function gives error of original [`PrimitiveArray`] `a` if it is not a mutable
/// primitive array.
pub fn binary_mut<T, F>(
pub fn binary_mut<T, U, F>(
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW I have added a doc example (and thus test coverage) for this change in #5798

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you @alamb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

binary_mut kernel requires both args to be the same type (which is inconsistent with binary)
3 participants