-
Notifications
You must be signed in to change notification settings - Fork 842
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
minor: use as_boolean to resolve TODO #4367
Conversation
arrow-select/src/take.rs
Outdated
@@ -476,7 +476,7 @@ where | |||
} | |||
|
|||
/// `take` implementation for boolean arrays | |||
fn take_boolean<IndexType>( | |||
pub fn take_boolean<IndexType>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this, we currently don't expose these both to keep the API surface down
arrow-ord/src/comparison.rs
Outdated
@@ -1196,8 +1196,7 @@ where | |||
K: ArrowDictionaryKeyType, | |||
K::Native: num::ToPrimitive, | |||
{ | |||
// TODO: Use take_boolean (#2967) | |||
let array = take(&dict_comparison, dict.keys(), None)?; | |||
let array = take_boolean(&dict_comparison, dict.keys())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let array = take_boolean(&dict_comparison, dict.keys())?; | |
let array = take(&dict_comparison, dict.keys())?.as_boolean().clone(); |
Perhaps? The overhead of the dyn dispatch and clone is irrelevant in the grand scheme of things. The linked issue #2967 was closed as not planned
Thanks @tustvold review |
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?