#parquet #read-write #async-read #thrift #async-write #hadoop #byte

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

#10 in #hadoop

Download history 124/week @ 2023-12-04 103/week @ 2023-12-11 120/week @ 2023-12-18 60/week @ 2023-12-25 49/week @ 2024-01-01 139/week @ 2024-01-08 110/week @ 2024-01-15 71/week @ 2024-01-22 55/week @ 2024-01-29 70/week @ 2024-02-05 106/week @ 2024-02-12 117/week @ 2024-02-19 208/week @ 2024-02-26 155/week @ 2024-03-04 187/week @ 2024-03-11 168/week @ 2024-03-18

722 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.2–2MB
~39K SLoC