#read-write #async-read #parquet #async-write #thrift #hadoop #file-format

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

#575 in Asynchronous

Download history 162/week @ 2024-07-21 216/week @ 2024-07-28 260/week @ 2024-08-04 169/week @ 2024-08-11 155/week @ 2024-08-18 179/week @ 2024-08-25 133/week @ 2024-09-01 194/week @ 2024-09-08 128/week @ 2024-09-15 228/week @ 2024-09-22 148/week @ 2024-09-29 115/week @ 2024-10-06 130/week @ 2024-10-13 105/week @ 2024-10-20 106/week @ 2024-10-27 116/week @ 2024-11-03

468 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–1.8MB
~37K SLoC