Skip to main content

Crate tparquet

Crate tparquet 

Source
Expand description

Parquet with the PCODEC compression codec (spec/FORMAT.md).

  • Writer writes Arrow data with PCODEC for the numeric columns its Policy selects: Auto compares PCODEC with the base codec (ZSTD level 3 by default) on the first batch.
  • read reads any Parquet file, PCODEC or not, as Arrow.
  • [transcode] converts standard Parquet to PCODEC and back.
  • inspect and verify report on files; the tparquet CLI wraps all of them.

The Parquet implementation is the parquet crate fork in rust/parquet, re-exported as parquet.

Re-exports§

pub use policy::Policy;
pub use transcode::Target;
pub use transcode::transcode;
pub use writer::ColumnCodec;
pub use writer::Writer;
pub use writer::WriterOptions;
pub use writer::parse_base;
pub use parquet;

Modules§

canonical
Canonical JSON of Arrow data (testdata/README.md): one object per row, compact, with floats as the hex of their IEEE bits so that comparisons are bit-exact.
inspect
What a file holds per column: codecs, sizes, pages and PCODEC payload modes.
policy
Which codec a column gets.
read
Reading Parquet files (PCODEC or not) as Arrow record batches.
transcode
Rewriting a Parquet file with or without PCODEC, keeping everything else.
verify
Logical equality of two Parquet files, floats compared bit for bit.
writer
Writer: an ArrowWriter that picks PCODEC or the base codec per column.

Enums§

Error
Everything that can go wrong in this crate.

Type Aliases§

Result
Result with this crate’s Error.