parquet-cli
A Parquet CLI for AI agents.
It answers the three questions a program has about a Parquet file: what is in it, how big is it, and what does the data look like. Every command is non-interactive, and every command has a JSON form, so the caller is usually a script rather than a person.
Install
The binary is called parquet.
Use
The JSON form
Every command takes --json, and then prints one object on stdout:
parquet head --format jsonl keeps the types of the values (numbers stay
numbers), which is what a program wants; --format csv and --format table
are there for a person.
Checking a file
parquet validate compares the footer with the file's own bytes: the row
counts have to add up, the column chunks have to fit inside the file, and they
must not overlap. It exits with 1 when something is wrong, so it can be used in
a pipeline.
Where it comes from
The questions it answers are the ones that came up while building Sumimi's cold layer (Parquet archives of a web analytics database): how much smaller is a Parquet copy than the DuckDB file, which columns cost the most bytes, and whether the row groups are the size they should be.
Release
The version lives in Cargo.toml. To cut a release:
# bump the version, then:
GitHub Actions then publishes the crate to crates.io, builds the binaries for macOS, Linux and Windows, and puts them in a GitHub release.
License
Apache-2.0. See LICENSE.