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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to