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 2021/07/26 14:36:00 UTC
[jira] [Resolved] (ARROW-13437) [C++] Slice of FixedSizeList fails
ValidateFull
[ https://issues.apache.org/jira/browse/ARROW-13437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-13437.
------------------------------------
Fix Version/s: 5.0.0
Resolution: Fixed
Issue resolved by pull request 10783
[https://github.com/apache/arrow/pull/10783]
> [C++] Slice of FixedSizeList fails ValidateFull
> -----------------------------------------------
>
> Key: ARROW-13437
> URL: https://issues.apache.org/jira/browse/ARROW-13437
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 4.0.1
> Reporter: David Li
> Assignee: David Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {code:python}
> >>> arr = pa.array([["a", "b"], None, ["c", "d"]], pa.list_(pa.string(), 2))
> >>> arr.validate(full=True)
> >>> arr.slice(0, 1).validate(full=True)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "pyarrow/array.pxi", line 1219, in pyarrow.lib.Array.validate
> File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
> pyarrow.lib.ArrowInvalid: Values length (6) is not equal to the length (1) multiplied by the value size (2)
> {code}
> Came up while looking at ARROW-13222. I'm not sure of the check here is necessarily valid, given slicing; it should perhaps only check that values length >= length * value_size, not that they're exactly equal.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)