[ 
https://issues.apache.org/jira/browse/ARROW-9037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francois Saint-Jacques resolved ARROW-9037.
-------------------------------------------
    Fix Version/s: 1.0.0
       Resolution: Fixed

Issue resolved by pull request 7353
[https://github.com/apache/arrow/pull/7353]

> [C++][C] 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
>            Assignee: Zhuo Peng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 20m
>  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)

Reply via email to