You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Sven Wagner-Boysen (Jira)" <ji...@apache.org> on 2020/06/08 07:16:00 UTC

[jira] [Created] (ARROW-9062) [Rust] Support to read JSON into dictionary type

Sven Wagner-Boysen created ARROW-9062:
-----------------------------------------

             Summary: [Rust] Support to read JSON into dictionary type
                 Key: ARROW-9062
                 URL: https://issues.apache.org/jira/browse/ARROW-9062
             Project: Apache Arrow
          Issue Type: Sub-task
            Reporter: Sven Wagner-Boysen


Currently a JSON reader build from a schema using the type dictionary for one of the fields in the schema will fail with JsonError("struct types are not yet supported")
{code:java}
let builder = ReaderBuilder::new().with_schema(..)
let mut reader: Reader<File> = builder.build::<File>(File::open(path).unwrap()).unwrap();
let rb = reader.next().unwrap()

{code}
 

Suggested solution:

Support reading into a dictionary in Json Reader: [https://github.com/apache/arrow/blob/master/rust/arrow/src/json/reader.rs#L368]



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