You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/09/21 14:38:00 UTC
[jira] [Resolved] (ARROW-16174) [C++][Python] FixedSizeListArray.flatten() ignores slicing offsets
[ https://issues.apache.org/jira/browse/ARROW-16174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-16174.
------------------------------------
Fix Version/s: 10.0.0
Resolution: Fixed
Issue resolved by pull request 14000
[https://github.com/apache/arrow/pull/14000]
> [C++][Python] FixedSizeListArray.flatten() ignores slicing offsets
> ------------------------------------------------------------------
>
> Key: ARROW-16174
> URL: https://issues.apache.org/jira/browse/ARROW-16174
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Affects Versions: 7.0.0
> Environment: Windows 10
> Reporter: Sergey Mozharov
> Assignee: Miles Granger
> Priority: Major
> Labels: good-first-issue, good-second-issue, kernel, pull-request-available
> Fix For: 10.0.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Related to ARROW-7362, which is not resolved for fixed size arrays:
> {code:java}
> import pyarrow as pa
> array = pa.array([[1], [2], [3]], type=pa.list_(pa.float64(), list_size=1))
> assert array[2:].flatten() != array.flatten() # <-- assertion fails
> # expected behavior
> assert array[2:].flatten() == pa.array([3], type=pa.float64()){code}
> Variable size lists behave as expected:
> {code:java}
> array = pa.array([[1], [2], [3]], type=pa.list_(pa.float64()))
> assert array[2:].flatten() != array.flatten() # pass
> assert array[2:].flatten() == pa.array([3], type=pa.float64()) # pass{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)