Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.3k
[C++][Python] Floordiv compute kernel #39386
Copy link
Copy link
Open
Labels
Component: C++Component: PythonStatus: needs championHigh impact issues which aren't being worked on but require a volunteer to move the task forward.High impact issues which aren't being worked on but require a volunteer to move the task forward.Type: enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
Component: C++Component: PythonStatus: needs championHigh impact issues which aren't being worked on but require a volunteer to move the task forward.High impact issues which aren't being worked on but require a volunteer to move the task forward.Type: enhancement
Describe the enhancement requested
Python and numpy support floor division, which for integral types, round towards infinity (pa.compute.divide for integral types rounds towards 0). If one of the types if floating point, then floordiv is equivalent to pa.compute.floor(pa.compute.divide), however, if both types are integral, floordiv should round towards infinity instead of 0. To do this currently, requires a combination of multiple compute calls, such as in pandas-dev/pandas#56677. Since python and numpy support this, would be useful to have this logic in an arrow compute kernel.
Component(s)
C++, Python