#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

#2146 in Parser implementations

Download history 116/week @ 2024-01-10 101/week @ 2024-01-17 63/week @ 2024-01-24 49/week @ 2024-01-31 87/week @ 2024-02-07 113/week @ 2024-02-14 140/week @ 2024-02-21 212/week @ 2024-02-28 150/week @ 2024-03-06 180/week @ 2024-03-13 154/week @ 2024-03-20 137/week @ 2024-03-27 171/week @ 2024-04-03 148/week @ 2024-04-10 188/week @ 2024-04-17 124/week @ 2024-04-24

658 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