# Dremio Apache Arrow writer using Java

**URL:** <https://community.dremio.com/t/dremio-apache-arrow-writer-using-java/8040>\
**Category:** Uncategorized\
**Created:** [September 27, 2021, 6:30pm UTC](https://community.dremio.com/t/dremio-apache-arrow-writer-using-java/8040 "2021-09-27T18:30:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil\_patra](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sunil\_patra](https://community.dremio.com/u/sunil_patra)\
**Post date:** [September 27, 2021, 6:30pm UTC](https://community.dremio.com/t/dremio-apache-arrow-writer-using-java/8040/1 "2021-09-27T18:30:19Z")

</div>

Hi Team ,  
I am trying to write data into tabular format : CSV file after processing the data retrieved from dremio using apache arrow flight connector using JAVA .

How can I write(batch) the processed data using apache arrow in tabular format - CSV (or parquet file) using JAVA. Plan is to store these data to azure data storage further post processing .

Could you please help.

Thanks,  
Sunil

---

<div class="post-metadata">

**Author:** ![jduong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/jduong/32/21_2.png) [@jduong](https://community.dremio.com/u/jduong)\
**Post date:** [September 27, 2021, 7:27pm UTC](https://community.dremio.com/t/dremio-apache-arrow-writer-using-java/8040/2 "2021-09-27T19:27:22Z")

</div>

For CSV, VectorSchemaRoot has a method to generate a TSV string, convertToTSVString(). This doesn’t seem very efficient to store back though.

For parquet, there are examples in C++ and Python in the Arrow documentation:  
[https://arrow.apache.org/docs/python/parquet.html](https://arrow.apache.org/docs/python/parquet.html)  
[https://arrow.apache.org/docs/cpp/parquet.html](https://arrow.apache.org/docs/cpp/parquet.html)

Dremio itself lets you download results as Parquet or CSV files in its web UI.

---

<div class="post-metadata">

**Author:** ![sunil\_patra](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sunil\_patra](https://community.dremio.com/u/sunil_patra)\
**Post date:** [September 28, 2021, 5:24pm UTC](https://community.dremio.com/t/dremio-apache-arrow-writer-using-java/8040/3 "2021-09-28T17:24:22Z")

</div>

Thanks for response. Is there any java package to write dremio data into parquet file using flight connector client.
