I’ve done it before using pa.Table.to_pylist() and then iterating through the 
array, calling json.dumps() while writing the output to a file.

This would produce a jsonl formatted file.


From: David Li <[email protected]>
Sent: Wednesday, December 7, 2022 8:59 AM
To: dl <[email protected]>
Subject: Re: Python IPC: JSON output files


External Email: Use caution with links and attachments
Assuming you're looking at C++, it's unfortunately not implemented: 
https://issues.apache.org/jira/browse/ARROW-5033<https://urldefense.com/v3/__https:/issues.apache.org/jira/browse/ARROW-5033__;!!KSjYCgUGsB4!Y0i_KZGuJC1g2hrE4UsHfBLQCxO-qC6prFfYzHYwj5HBlLyenbDsAZ6qzMJkuAoHj0OPYMvRYp82n9b18C7T$>

On Wed, Dec 7, 2022, at 11:19, James Duong via user wrote:
Hi,

Is there a way to write JSON files from Arrow Tables? I see other formats such 
as CSV and Parquet supported for both, but only reading for JSON.

--
James Duong
Lead Software Developer
Bit Quill Technologies Inc.
Direct: +1.604.562.6082 | 
[email protected]<mailto:[email protected]>
https://www.bitquilltech.com<https://urldefense.com/v3/__https:/www.bitquilltech.com/__;!!KSjYCgUGsB4!Y0i_KZGuJC1g2hrE4UsHfBLQCxO-qC6prFfYzHYwj5HBlLyenbDsAZ6qzMJkuAoHj0OPYMvRYp82nyIlpbyH$>


This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information.  Any unauthorized review, use, 
disclosure, or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.  Thank you.


This message may contain information that is confidential or privileged. If you 
are not the intended recipient, please advise the sender immediately and delete 
this message. See 
http://www.blackrock.com/corporate/compliance/email-disclaimers for further 
information.  Please refer to 
http://www.blackrock.com/corporate/compliance/privacy-policy for more 
information about BlackRock’s Privacy Policy.


For a list of BlackRock's office addresses worldwide, see 
http://www.blackrock.com/corporate/about-us/contacts-locations.

© 2022 BlackRock, Inc. All rights reserved.

Reply via email to