You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 12:49:02 UTC

[jira] [Commented] (ARROW-11648) [Rust]: Json reader for nested dictionary arrays returns empty array instead of array of nulls

    [ https://issues.apache.org/jira/browse/ARROW-11648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332219#comment-17332219 ] 

Andrew Lamb commented on ARROW-11648:
-------------------------------------

Migrated to github: https://github.com/apache/arrow-rs/issues/188

> [Rust]: Json reader for nested dictionary arrays returns empty array instead of array of nulls
> ----------------------------------------------------------------------------------------------
>
>                 Key: ARROW-11648
>                 URL: https://issues.apache.org/jira/browse/ARROW-11648
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Jörn Horstmann
>            Priority: Minor
>
>  
> {code:java}
> // schema: id: Utf8, attr: List<Dictionary<Utf8>>
>         let input = json!([
>             {"id": "a"},
>             {"id": "b"},
>             {"id": "c"},
>             {"id": "d"},
>             {"id": "e"},
>         ]);
> // Results in ArrowError("InvalidArgumentError(\"all columns in a record batch must have the same length\")"){code}
> Probably related to `list_array_string_array_builder` around line 688:
> {code:java}
> if let Some(value) = row.get(col_name) { 
> ...
> }
> // no else{code}
>  
> Expected: The resulting array should have a length equal to the number of rows, all nested lists should be marked as null.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)