You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/25 17:13:00 UTC
[jira] [Updated] (ARROW-11773) [Rust] Allow json writer to write
out JSON arrays as well as newline formatted objects
[ https://issues.apache.org/jira/browse/ARROW-11773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-11773:
-----------------------------------
Labels: pull-request-available (was: )
> [Rust] Allow json writer to write out JSON arrays as well as newline formatted objects
> --------------------------------------------------------------------------------------
>
> Key: ARROW-11773
> URL: https://issues.apache.org/jira/browse/ARROW-11773
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Rust
> Reporter: Andrew Lamb
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently the arrow json writer makes JSON that looks like this (one record per line):
> ```
> {"foo":1}
> {"bar":1}
> ```
> Whereas a JSON array looks like this
> ```
> [
> {"foo":1},
> {"bar":1}
> ]
> ```
> It would be nice to write out json in a streaming fashion (we added such a feature in IOx via https://github.com/influxdata/influxdb_iox/pull/870/files)
> /// Writes out well formed JSON arays in a streaming fashion
> ///
> /// [{"foo": "bar"}, {"foo": "baz"}]
> ///
> /// This is based on the arrow JSON writer (json::writer::Writer)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)