[
https://issues.apache.org/jira/browse/ARROW-16174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li updated ARROW-16174:
-----------------------------
Labels: good-first-issue good-second-issue kernel (was: kernel)
> [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
> Priority: Major
> Labels: good-first-issue, good-second-issue, kernel
>
> 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.1#820001)