#parquet #hadoop

parquet-format-async-temp

Temporary crate containing thrift library + parquet definitions compiled to support read+write async

5 unstable releases

0.3.1 Jun 14, 2022
0.3.0 Mar 15, 2022
0.2.0 Aug 28, 2021
0.1.1 Aug 10, 2021
0.1.0 Aug 8, 2021

#173 in Asynchronous

Download history 1496/week @ 2023-02-06 1683/week @ 2023-02-13 2160/week @ 2023-02-20 1655/week @ 2023-02-27 1834/week @ 2023-03-06 3282/week @ 2023-03-13 2914/week @ 2023-03-20 2683/week @ 2023-03-27 2488/week @ 2023-04-03 2839/week @ 2023-04-10 2546/week @ 2023-04-17 1990/week @ 2023-04-24 2445/week @ 2023-05-01 1644/week @ 2023-05-08 1808/week @ 2023-05-15 2085/week @ 2023-05-22

8,190 downloads per month

Apache-2.0

465KB
10K SLoC

parquet-format-async-temp

This is a temporary crate containing a subset of rust's thirft library and parquet to support native async parquet read and write.

Specifically, it:

  • supports async read API (via futures)
  • supports async write API (via futures)
  • the write API returns the number of written bytes

It must be used with the fork of thrift's compiler available at https://github.com/jorgecarleitao/thrift/tree/write_size .

Why

To read and write files with thrift (e.g. parquet) without commiting to a particular runtime (e.g. tokio, hyper, etc.), the protocol needs to support AsyncRead + AsyncSeek and AsyncWrite respectively.

To not require Seek and AsyncSeek on write, the protocol must return the number of written bytes on its write_* API.

This crate addresses these two concerns for parquet. It is essentially:

Dependencies

~1.3–2MB
~42K SLoC