You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Yibo Cai (Jira)" <ji...@apache.org> on 2021/05/03 14:44:00 UTC
[jira] [Commented] (ARROW-12606) [C++] Quantile function failing on
arrays with offset
[ https://issues.apache.org/jira/browse/ARROW-12606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338401#comment-17338401 ]
Yibo Cai commented on ARROW-12606:
----------------------------------
Thanks [~jorisvandenbossche] for the analysis.
Mode kernel also has the same bug, will fix both kernels to handle arrays with offset correctly.
> [C++] Quantile function 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
>
> 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)