&res created ARROW-17256: ---------------------------- Summary: 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
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)