Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust]: Json reader for nested dictionary arrays returns empty array instead of array of nulls #27511

Closed
asfimport opened this issue Feb 16, 2021 · 1 comment

Comments

@asfimport
Copy link

 

// 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\")")

Probably related to list_array_string_array_builder around line 688:

if let Some(value) = row.get(col_name) { 
...
}
// no else

 

Expected: The resulting array should have a length equal to the number of rows, all nested lists should be marked as null.

Reporter: Jörn Horstmann / @jhorstmann

Note: This issue was originally created as ARROW-11648. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Andrew Lamb / @alamb:
Migrated to github: apache/arrow-rs#188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant