[
https://issues.apache.org/jira/browse/ARROW-12606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-12606:
-----------------------------------
Labels: pull-request-available (was: )
> [C++] Quantile and Mode functions failing on arrays with offset
> ---------------------------------------------------------------
>
> Key: ARROW-12606
> URL: https://issues.apache.org/jira/browse/ARROW-12606
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Affects Versions: 4.0.0
> Environment: macOS, ubuntu
> Reporter: A. Coady
> Assignee: Yibo Cai
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Sounds unrelated, but it's the simplest example I've gotten to reproduce.
>
> {code:java}
> import pyarrow as pa, pyarrow.compute as pc
> array = pa.array([[0], [1]])
> first, second = [pc.quantile(scalar.values) for scalar in array]
> assert first.to_pylist() == [0]
> assert (second.to_pylist() == [1]), second # 7.20576e+16{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)