You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2022/07/29 19:37:00 UTC
[jira] [Updated] (ARROW-17256) [Python] Can't call combine_chunks on empty ChunkedArray
[ https://issues.apache.org/jira/browse/ARROW-17256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicola Crane updated ARROW-17256:
---------------------------------
Summary: [Python] Can't call combine_chunks on empty ChunkedArray (was: Can't call combine_chunks on empty ChunkedArray)
> [Python] Can't call combine_chunks on empty ChunkedArray
> --------------------------------------------------------
>
> Key: ARROW-17256
> URL: https://issues.apache.org/jira/browse/ARROW-17256
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Environment: pyarrow 8.0.0
> python 3.9
> Reporter: &res
> Priority: Minor
>
> When calling:
> {code:java}
> pa.chunked_array([], type=pa.bool_()).combine_chunks(){code}
> I get this error:
> {code:java}
> pyarrow/table.pxi:700: in pyarrow.lib.ChunkedArray.combine_chunks
> ???
> pyarrow/array.pxi:2868: in pyarrow.lib.concat_arrays
> ???
> pyarrow/error.pxi:144: in pyarrow.lib.pyarrow_internal_check_status
> ???
> pyarrow/error.pxi:100: in pyarrow.lib.check_status
> ???
> E pyarrow.lib.ArrowInvalid: Must pass at least one array{code}
> While this works:
> {code:java}
> pa.chunked_array([pa.array([], pa.bool_())], type=pa.bool_()) {code}
> In the first case, it should return an empty BoolArray as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)