[ 
https://issues.apache.org/jira/browse/ARROW-9843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17423977#comment-17423977
 ] 

Benson Muite edited comment on ARROW-9843 at 10/4/21, 2:52 PM:
---------------------------------------------------------------

Between functionality should be similar to 
[Pandas|https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.between.html]
 should some kind of indicator be added similar to:

*inclusive*

{“both”, “neither”, “left”, “right”}

[R|https://www.rdocumentation.org/packages/data.table/versions/1.14.2/topics/between]
 has similar functionality, though only has the equivalent of "both" and 
"neither" for including the bounds.

The description above has only strict inequalities, and this is what is 
implemented in the [kernel added in pull request 
#8387|https://github.com/david1437/arrow/blob/ARROW-9843/cpp/src/arrow/compute/kernels/scalar_between.cc]


was (Author: baksmj):
Between functionality should be similar to 
[Pandas|https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.between.html]
 should some kind of indicator be added similar to:

*inclusive*{“both”, “neither”, “left”, “right”}

The description above has only strict inequalities, and this is what is 
implemented in the [kernel added in pull request 
#8387|https://github.com/david1437/arrow/blob/ARROW-9843/cpp/src/arrow/compute/kernels/scalar_between.cc]

> [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
>            Assignee: Benson Muite
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to