[
https://issues.apache.org/jira/browse/ARROW-9843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209182#comment-17209182
]
Wes McKinney commented on ARROW-9843:
-------------------------------------
I would suggest only implementing two versions, {{(data: Array, left: Array,
right: Array)}} and {{(data: Array, left: Scalar, right: Scalar)}}.
I added a missing "avoid" to the issue description. The idea is to compute
BETWEEN as a loop of {{(left < data[i]) && (data[i] < right)}} instead of doing
{{AND(GREATER(data, left), LESS(data, right))}}
> [C++] Implement Between trinary kernel
> --------------------------------------
>
> Key: ARROW-9843
> URL: https://issues.apache.org/jira/browse/ARROW-9843
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
>
> A specialized {{between(arr, left_bound, right_bound)}} kernel would avoid
> multiple scans and AND operation
--
This message was sent by Atlassian Jira
(v8.3.4#803005)