You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jörn Horstmann (Jira)" <ji...@apache.org> on 2021/02/16 19:43:00 UTC

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

Jörn Horstmann created ARROW-11648:
--------------------------------------

             Summary: [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


 
{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)