You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/02/25 18:50:00 UTC
[jira] [Assigned] (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 ]
Andrew Lamb reassigned ARROW-11773:
-----------------------------------
Assignee: Andrew Lamb
> [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
> Assignee: Andrew Lamb
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> 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)