You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/17 10:56:53 UTC

[GitHub] [arrow-datafusion] timvw commented on issue #4198: What happened for NDJSON support on CLI?

timvw commented on issue #4198:
URL: https://github.com/apache/arrow-datafusion/issues/4198#issuecomment-1318456783

   Seems that this now available as regular "json" format:
   https://github.com/apache/arrow-datafusion/blob/master/datafusion/core/src/datasource/file_format/json.rs#L46
   
   The following works on my machine:
   `DataFusion CLI v14.0.0
   ❯ create external table x stored as json location 'datafusion/core/tests/jsons/1.json';
   0 rows in set. Query took 0.021 seconds.
   ❯ select * from x;
   +-----+----------------+---------------+------+
   | a   | b              | c             | d    |
   +-----+----------------+---------------+------+
   | 1   | [2, 1.3, -6.1] | [false, true] | 4    |
   | -10 | [2, 1.3, -6.1] | [true, true]  | 4    |
   | 2   | [2, , -6.1]    | [false, ]     | text |
   |     |                |               |      |
   +-----+----------------+---------------+------+
   4 rows in set. Query took 0.030 seconds.
   `
   
   I have updated [PR-4427](https://github.com/apache/arrow-datafusion/pull/4227) such that both JSON and NDJSON are registered by default
   
   


-- 
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