You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mnpw (via GitHub)" <gi...@apache.org> on 2023/10/09 12:56:53 UTC

[I] Support for reading JSON Array to Arrow [arrow-rs]

mnpw opened a new issue, #4905:
URL: https://github.com/apache/arrow-rs/issues/4905

   **Which part is this question about**
   
   Reading from JSON to Arrow ([arrow_json](https://docs.rs/arrow-json/47.0.0/arrow_json/index.html)::[reader](https://docs.rs/arrow-json/47.0.0/arrow_json/reader/index.html#) module)
   
   **Describe your question**
   
   [arrow_json::reader](https://docs.rs/arrow-json/47.0.0/arrow_json/reader/index.html#) mentions
   > This JSON reader allows **JSON line-delimited files** to be read into the Arrow memory model...
   
   I'm curious as to why does the reader not support Array JSON type (`[{...}, {...}, {...}, ...]`)? I found that `arrow2` is able to [do so](https://jorgecarleitao.github.io/arrow2/io/json_read.html) but not `arrow-rs`.
   
   **Additional context**
   N/A


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support for reading JSON Array to Arrow [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #4905:
URL: https://github.com/apache/arrow-rs/issues/4905#issuecomment-1753176583

   It's a consequence of the formulation of the reader in terms of `RecordBatch` and by extension `Schema`, which correspond to JSON structs. The reader supports lists, just currently not at the root of the schema.
   
   This could probably be relaxed without too much difficulty, is this important to your use-case or just an observation?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support for reading JSON Array to Arrow [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #4905: Support for reading JSON Array to Arrow
URL: https://github.com/apache/arrow-rs/issues/4905


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support for reading JSON Array to Arrow [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #4905:
URL: https://github.com/apache/arrow-rs/issues/4905#issuecomment-1768075990

   `label_issue.py` automatically added labels {'arrow'} from #4911


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org