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/26 22:13:00 UTC

[jira] [Resolved] (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 resolved ARROW-11773.
---------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 9575
[https://github.com/apache/arrow/pull/9575]

> [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
>             Fix For: 4.0.0
>
>          Time Spent: 1.5h
>  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)