You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/05 00:53:00 UTC
[jira] [Updated] (ARROW-9037) [C++/C-ABI] unable to import array
with null count == -1 (which could be exported)
[ https://issues.apache.org/jira/browse/ARROW-9037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-9037:
----------------------------------
Labels: pull-request-available (was: )
> [C++/C-ABI] unable to import array with null count == -1 (which could be exported)
> ----------------------------------------------------------------------------------
>
> Key: ARROW-9037
> URL: https://issues.apache.org/jira/browse/ARROW-9037
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.17.1
> Reporter: Zhuo Peng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If an Array is created with null_count == -1 but without any null (and thus no null bitmap buffer), then ArrayData.null_count will remain -1 when exporting if null_count is never computed. The exported C struct also has null_count == -1 [1]. But when importing, if null_count != 0, an error [2] will be raised.
> [1] https://github.com/apache/arrow/blob/5389008df0267ba8d57edb7d6bb6ec0bfa10ff9a/cpp/src/arrow/c/bridge.cc#L560
> [2] https://github.com/apache/arrow/blob/5389008df0267ba8d57edb7d6bb6ec0bfa10ff9a/cpp/src/arrow/c/bridge.cc#L1404
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)