CLI reference¶
This document contains the help content for the pqbench command-line program.
Command Overview:
pqbench↴pqbench lz↴pqbench compression↴pqbench bytemass↴pqbench lint↴pqbench get↴pqbench get metastore↴pqbench get catalog↴pqbench get schema↴pqbench get table↴pqbench get partition↴pqbench get partition-price↴pqbench format↴pqbench table-file↴pqbench download↴pqbench list↴pqbench list catalogs↴pqbench list schemas↴pqbench list tables↴pqbench list files↴pqbench list partitions↴pqbench list columns↴pqbench sample↴pqbench sample files↴pqbench summarize↴pqbench summarize partitions↴pqbench skill↴pqbench proxy↴pqbench prune↴
pqbench¶
pqbench measures how Parquet files spend bytes (bytemass), how well codecs compress them (lz, compression), and what a Delta or Iceberg table's files hold (list files). Commands compose on pipes: each writes a resource the next command reads.
get → Metastore / Catalog / Schema / Table / Partition / PartitionPrice
one resource of the walk, or a store partition's results
list → Catalog / Schema / Table / TableFile / Column / Partition
a collection of the walk, or of the driver's store
sample → TableFile keep a rate of them, by size
bytemass → Blob + Column footer byte masses (alias for list columns)
lint → Suggestion measured rewrite suggestions
summarize → PartitionStats total partitions (summarize partitions)
prune → paths delete superseded store versions
skill → markdown bundled agent recipes (write / DDL / codec)
format → tables / HTML render a stream (--html for one file's treemap)
proxy → URL cache and pace a catalog for many processes
The walk reads with two verbs: get reads one resource, list lists a
collection; sample and summarize reduce one.
Standard output is NDJSON; pqbench format renders it as tables.
Subcommand help is local (pqbench get --help).
Auth, documents, and format skills are here.
Guide: docs/reference/cli.md
Usage: pqbench [OPTIONS] <COMMAND>
Examples:
pqbench table-file data.parquet | pqbench bytemass
cat docker/e2e-lakehouse/table.ndjson | pqbench list files | pqbench bytemass
pqbench list catalogs | pqbench list schemas | pqbench list tables
pqbench list catalogs | pqbench list schemas | pqbench list tables \
| pqbench get table | pqbench list files | pqbench bytemass
pqbench list tables | pqbench get table
pqbench lz file.bin -c zstd@3 --samples 10
pqbench compression data.parquet --per-column
pqbench lint data.parquet
pqbench lint data.parquet --target delta
pqbench skill parquet-advisor
pqbench list catalogs | pqbench format
Documents:
Metastore the endpoint's metastore record (get metastore)
Catalog the endpoint's catalogs (list catalogs) / one record (get catalog)
Schema a catalog's schemas (list schemas) / one record (get schema)
Table a schema's tables (list tables) / one record (get table)
TableFile one table file (list files, sample files, table-file)
Partition one partition of a table's snapshot (list partitions,
enriched from the driver's newest stored version)
PartitionPrice a partition's storage classes and cost (get partition-price)
PartitionStats a catalog's, schema's or table's partition totals (summarize partitions)
Blob one file's storage facts (list columns)
Column one file column and its byte mass (list columns)
Suggestion one storage suggestion (lint)
pqbench.skill name + description (pqbench skill with no args)
Features: delta / iceberg to load those logs; aws / delta-s3 / iceberg-s3 for s3://. A missing feature fails at runtime and names itself.
Auth (how to reach data):
Local paths need no credentials.
s3:// (needs --features aws / delta-s3 / iceberg-s3)
Default AWS provider chain (process env, shared config, instance role,
AWS_PROFILE). A table's vended lease overrides that chain for its reads;
it is held in memory and never exported or written to a document.
AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN STS or catalog-vended temp keys
AWS_REGION
AWS_ENDPOINT S3-compatible host (also set AWS_ENDPOINT_URL)
AWS_ALLOW_HTTP true for http://
AWS_VIRTUAL_HOSTED_STYLE_REQUEST false for path-style (MinIO, rustfs)
AWS_SKIP_SIGNATURE true for a public bucket
Catalog config (PQB_ENDPOINT / PQB_TOKEN)
endpoint + token a Databricks workspace URL + PAT (dapi-…), or a
Unity OSS / Iceberg REST URL. The token is a Bearer for catalog reads and
for storage-lease vending; a PAT is not an S3 key.
Service-principal OAuth (PQB_CLIENT_ID / PQB_CLIENT_SECRET) mints a
bearer for each request: a command is a stateless HTTP client and keeps no
cache. `pqbench proxy` owns caching (OAuth tokens, vended credentials,
catalog GETs) and paces a catalog for every process in a walk (15/s under
Unity, unpaced under Iceberg).
Databricks-governed tables
Each storage-reading stage resolves the table's vended lease itself — a
direct call to the catalog, with no in-process cache — and reads under it.
The keys stay in memory; a table the catalog will not vend for is dropped
with the cause. Behind `pqbench proxy` the vended credentials are cached
once for the whole walk.
https://docs.databricks.com/api/workspace/temporarytablecredentials/generatetemporarytablecredentials
Producer pipe
pqbench table-file s3://bucket/table/part-0.parquet | pqbench bytemass
(the table-file record names the blob; AWS_* in the environment or a
vended lease supplies storage access)
Format skills (read these when the input is Parquet or a table):
Parquet file format https://parquet.apache.org/docs/file-format/
Parquet thrift spec https://github.com/apache/parquet-format
Delta transaction log https://github.com/delta-io/delta/blob/master/PROTOCOL.md
Iceberg table spec https://iceberg.apache.org/spec/
Iceberg REST catalog https://iceberg.apache.org/docs/latest/rest-catalog-spec/
Unity / Databricks list https://docs.databricks.com/api/workspace/tables/list
AWS default credentials https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html
pqbench command guide docs/reference/cli.md
pqbench table docs docs/guides/delta.md docs/guides/iceberg.md docs/reference/format.md
Subcommands:¶
lz— Codec sweep over raw file bytes (lzbench-style)compression— Codec sweep over encoded Parquet pages (NONE-compressed input only)bytemass— Per-column on-disk bytes from Parquet footers (alias forlist columns)lint— Suggest the storage a Parquet file's values do not needget— Read one resource of the walkformat— Render a stream as tables, or one file's bytemass stream as HTMLtable-file— Name storage paths as table-file recordsdownload— Copy a table file's bytes to a local pathlist— List a collection of the walksample— Keep a rate of a table's files, by sizesummarize— Fold partitions into partition statsskill— Print a bundled agent skill (write / DDL / compression recipes)proxy— Serve a catalog through a local cache and pacerprune— Delete the store's superseded partition versions
Options:¶
--profile <NAME>— the~/.pqbenchrcprofile to run under [env: PQB_PROFILE]--endpoint <URL>— workspace URL; overrides the profile [env: PQB_ENDPOINT]--token <TOKEN>— bearer token; overrides the profile [env: PQB_TOKEN]--client-id <ID>— service-principal OAuth client id; mints the bearer when no token is set [env: PQB_CLIENT_ID]--client-secret <SECRET>— service-principal OAuth client secret [env: PQB_CLIENT_SECRET]--table-format <FORMAT>— catalog dialect: unity (the default) or iceberg [env: PQB_TABLE_FORMAT]
pqbench lz¶
Compress the whole file as opaque bytes. -c codec@level is repeatable;
omitting -c sweeps every wired codec (zstd, lz4, gzip, snappy). --samples
timed passes after --warmup-iterations. --mode fastest keeps the best pass;
mean averages all. The report is composable NDJSON; pqbench format
renders it as a table.
Usage: pqbench lz [OPTIONS] <FILE>
Examples:
pqbench lz file.bin -c zstd@3 --samples 10
pqbench lz file.bin | pqbench format
See also:
pqbench compression --help same sweep over Parquet pages (NONE input)
pqbench --help
docs/reference/cli.md
Arguments:¶
<FILE>— input file
Options:¶
-c <codec@level>— codec@level, repeatable; default: all wired codecs--samples <SAMPLES>— timed passes to collect per sweep (after warmup)
Default value: 10
* --warmup-iterations <WARMUP_ITERATIONS> — timed passes to discard before sampling (cold-start effects)
Default value: 3
* --mode <MODE> — how to reduce the samples: fastest = mean over the best pass, mean = mean over all
Default value: fastest
Possible values: fastest, mean
pqbench compression¶
Same sweep as lz, but over each column chunk's encoded pages. The file must
be NONE-compressed; a compressed file is rejected. --per-column adds one
report row per column chunk. The report is composable NDJSON (report rows,
then per-column rows); pqbench format renders it as a table.
Usage: pqbench compression [OPTIONS] <FILE>
Examples:
pqbench compression data.parquet
pqbench compression data.parquet --per-column
pqbench compression data.parquet -c zstd@3 | pqbench format
See also:
pqbench lz --help raw-byte sweep (any file)
pqbench bytemass --help on-disk bytes without a codec sweep
pqbench --help
docs/reference/cli.md
Arguments:¶
<FILE>— input file
Options:¶
-c <codec@level>— codec@level, repeatable; default: all wired codecs--samples <SAMPLES>— timed passes to collect per sweep (after warmup)
Default value: 10
* --warmup-iterations <WARMUP_ITERATIONS> — timed passes to discard before sampling (cold-start effects)
Default value: 3
* --mode <MODE> — how to reduce the samples: fastest = mean over the best pass, mean = mean over all
Default value: fastest
Possible values: fastest, mean
--per-column— report per-column breakdown
pqbench bytemass¶
Read Parquet footers only and report the on-disk bytes of each column, its chunks folded over the file's row groups. Works on compressed files (HEAD + ranged GETs on a URI).
Inputs: a stream of table-file records on standard input. list files
names a table's files; table-file PATH names one path. A glob is a shell
job on that list, not a bytemass feature. A table-file record carries the
file's blob and, when vended, its lease.
One Blob per file and one Column per column, with its byte mass nested,
as NDJSON. pqbench format renders the columns as a table; pqbench format
--html draws one file's columns as a treemap. pqbench bytemass is an alias
for pqbench list columns.
Usage: pqbench bytemass [OPTIONS]
Examples:
pqbench table-file data.parquet | pqbench bytemass
cat docker/e2e-lakehouse/table.ndjson | pqbench list files | pqbench bytemass
pqbench table-file data.parquet | pqbench bytemass | pqbench format --html > report.html
See also:
pqbench list --help list the files this command measures
pqbench sample --help keep a rate of those files
pqbench format --help render the columns as a table or a treemap
pqbench --help auth, documents, format skills
docs/reference/cli.md
Options:¶
--fan-out <FAN_OUT>— files in flight at once
Default value: 128
* --local <PATH> — read each footer from this file instead of the blob, keeping the record's name
pqbench lint¶
Lint one local Parquet file: detect every rewrite its footer and one representative row group make plausible, measure each against a controlled rewrite, and write one Suggestion line per winning change with the bytes it saves.
The sample is the file's one representative whole row group, the group whose
row count is closest to the file's average, so no arbitrary byte or row cap
stands in for the file. The first rule that detects a column and verifies a
saving claims it, so a column's bytes are priced once; stats-truncated reads
only the footer and may price a column another rule claimed.
--target names the engine that will rewrite the file: spark, delta, iceberg,
pyarrow, parquet-rs, or duckdb. Without it, the footer's created_by writer
decides. A per-column knob becomes one suggestion per column; a file- or
table-wide knob (Delta's delta.parquet.compression.codec, for one) rolls the
file's verified columns into a single suggestion with no column. A target
with no setting for a rule skips it before a page is read.
--blob makes the emitted suggestions name a remote object (a
blobs/{service}/{locator} name) instead of the local path, so a downloaded
copy keeps its original identity. No storage is read.
The stream is NDJSON; pqbench format renders it as one table.
Usage: pqbench lint [OPTIONS] <PATH>
Examples:
pqbench lint data.parquet
pqbench lint data.parquet | pqbench format
pqbench lint data.parquet --target delta
pqbench lint copy.parquet --blob blobs/s3/bucket%2Fdata.parquet
See also:
pqbench bytemass --help per-column bytes from the footer
pqbench compression --help codec sweep over encoded pages
pqbench format --help render the suggestion stream as a table
pqbench --help auth, documents, format skills
docs/reference/cli.md
Arguments:¶
<PATH>— Local Parquet file to lint
Options:¶
--target <TARGET>— Configuration surface to emit settings for [default: inferred from footer writer]
Possible values:
- spark:
Apache Spark (parquet-mr)
- delta:
Delta Lake (Photon or Spark)
- iceberg:
Apache Iceberg
- pyarrow:
Arrow C++ (pyarrow)
- parquet-rs:
Arrow Rust (parquet-rs)
- duckdb:
DuckDB
--blob <BLOB>— Blob name the emitted suggestions carry instead of the local path
pqbench get¶
Read one resource of the walk, by type:
metastore the endpoint's record (name, uid, cloud, region), one line
catalog one catalog's record (name, catalog_type, comment, owner)
schema one schema's record (name, uid, display_name, comment, uri,
properties), from a Schema ref
table one table's record (format, snapshot_version, declared_columns,
partition_columns, properties), from a Table ref
partition one store partition's newest stored results: its price, its
suggestions, its column masses, then its listing
partition-price
one partition's price, its singleton child: the storage classes
of its oldest, sample and newest files, and its bytes and removed
bytes at each class's S3 list price (us-east-1), from a Partition
record (from `list partitions`; no endpoint)
The endpoint, bearer, and dialect come from PQB_ENDPOINT / PQB_TOKEN /
PQB_TABLE_FORMAT; the catalog resources need an endpoint, while
get partition-price HEADs the files a Partition record names. get reads the matching resource records
on standard input — one per line — so it enriches a listing: pqbench list
catalogs | pqbench get catalog. A JSON record names the resource: echo
'"dbx_samples.nyctaxi"' | pqbench get schema.
Unity REST serves /schemas/{full_name} and /tables/{full_name}; the catalog's declared columns and properties are merged over the Delta log, which is read with without_files() — O(1) in files — so the table read needs a readable storage location: the ref's uri or the process environment. Under Iceberg REST (PQB_TABLE_FORMAT=iceberg) the schema level reads loadNamespace and the table level reads loadTable, whose metadata is inline, so no storage read runs. A table loadTable refuses as not Iceberg compatible falls back to the Unity record and its own log (Delta wins UniForm), as the Unity dialect reads it.
The emitted record carries no credentials. Each catalog-backed stage resolves
the table's vended lease itself — directly from the catalog, with no
in-process cache — so a table the catalog will not vend for is dropped there
with the cause, and the level exits non-zero. Behind pqbench proxy vended
credentials and catalog GETs are cached once for the whole walk.
The stream is NDJSON.
Usage: pqbench get <COMMAND>
Examples:
pqbench get metastore
pqbench list catalogs | pqbench get catalog
echo '"dbx_samples.nyctaxi"' | pqbench list tables | pqbench get table
pqbench list schemas | pqbench get schema
pqbench list tables | pqbench get table
cat table.ndjson | pqbench list partitions | pqbench get partition-price
pqbench get partition catalogs/main/schemas/sales/tables/orders/partitions/day%3D1 --store DIR
See also:
pqbench list --help the walk's collections
pqbench bytemass --help measure the files the walk names
pqbench --help auth (AWS_*, catalog token), documents, format skills
docs/reference/cli.md docs/guides/delta.md docs/guides/iceberg.md
Subcommands:¶
metastore— Read the endpoint's metastore recordcatalog— Read one catalog's recordschema— Read one schema's record (CATALOG.SCHEMA)table— Read one table's record (CATALOG.SCHEMA.TABLE)partition— Read one partition's newest stored results (NAME)partition-price— Read each partition's storage classes and cost (Partition records on stdin)
pqbench get metastore¶
Read the endpoint's metastore record
Usage: pqbench get metastore
pqbench get catalog¶
Read one catalog's record
Usage: pqbench get catalog [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— requests in flight at once
Default value: 64
pqbench get schema¶
Read one schema's record (CATALOG.SCHEMA)
Usage: pqbench get schema [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— requests in flight at once
Default value: 64
pqbench get table¶
Read one table's record (CATALOG.SCHEMA.TABLE)
Usage: pqbench get table [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— tables in flight at once (default: 8)
Default value: 8
pqbench get partition¶
Read one partition's newest stored results (NAME)
Usage: pqbench get partition [OPTIONS] <NAME>
Arguments:¶
<NAME>— a partition name (catalogs/…/partitions/…)
Options:¶
--store <DIR>— the driver's store (default: PQB_DRIVER_STORE)
pqbench get partition-price¶
Read each partition's price: read Partition records on standard input (from
list partitions) and write one PartitionPrice per partition, the partition's
singleton child (…/partitions/{partition}/price): the storage classes of its
oldest, sample and newest files, and its bytes and removed bytes at each
class's S3 list price (us-east-1).
Each partition costs up to three HEADs under its table's lease, nothing is read from the files, and a HEAD does not count as Intelligent-Tiering access. S3 omits the class for STANDARD. Lifecycle moves objects by age, so one class covers the partition and two bound a transition inside it; a class that prices by access (INTELLIGENT_TIERING) lists each access sub-tier. A file that is not an S3 object has no class, and a partition with none has no cost.
Usage: pqbench get partition-price [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— partitions in flight at once
Default value: 16
pqbench format¶
Read NDJSON on standard input. Tables are the default, one table per record
kind; a record the curated type cannot hold still renders from its keys, and a
record without a string name is skipped. --html reads one file's
bytemass (list columns) stream — its Blob and Column records — and
writes a flat column treemap page to standard output. A stream that names more
than one file, or no columns, is an error.
Usage: pqbench format [OPTIONS]
Command Alias: fmt
Examples:
pqbench list catalogs | pqbench format
pqbench table-file data.parquet | pqbench bytemass | pqbench format
pqbench table-file data.parquet | pqbench bytemass | pqbench format --html > report.html
See also:
pqbench bytemass --help produce the stream --html draws
docs/reference/format.md docs/reference/cli.md
Options:¶
--html— write an HTML treemap for one file's bytemass stream
pqbench table-file¶
Name storage paths as table-file records
Usage: pqbench table-file <PATHS>...
Arguments:¶
<PATHS>— Parquet paths or storage URIs
pqbench download¶
Read one TableFile record on standard input (list files names them) and copy
its blob to --output, in pieces, so a large file costs bounded memory and the
blob is read once. bytemass reads such a copy with --local, and lint takes
--blob so its suggestions name the remote object rather than the copy.
Usage: pqbench download --output <PATH>
Examples:
pqbench table-file data.parquet | pqbench download --output copy.parquet
pqbench lint copy.parquet --blob blobs/s3/bucket%2Fdata.parquet
See also:
pqbench table-file --help name a path as a table-file record
pqbench lint --help name the remote blob with --blob
Options:¶
--output <PATH>— the file to write
pqbench list¶
List a collection of the walk, by name:
catalogs the catalogs at the endpoint, one Catalog line each
schemas the schemas in a catalog (Catalog refs on standard input), one
Schema line each
tables the tables in a schema (Schema refs on standard input), one Table
line each — the record `get table` enriches
files a table's active files (Table refs on standard input), one
TableFile line each
partitions a table's partitions (Table records from `get table` on standard
input), or the driver's store under an optional PARENT when
--store or PQB_DRIVER_STORE names it, one Partition line each:
file count, bytes, records, removed bytes, etag, and the oldest,
newest and sample file
columns a file's columns and their byte masses (TableFile refs on
standard input), one Column line each
Unity REST serves /catalogs, /schemas, and /tables. Under
PQB_TABLE_FORMAT=iceberg the schema and table levels speak Iceberg REST
instead: the endpoint then names the catalog base ({root}/v1 or
{root}/v1/{prefix}) and they read /namespaces under it. No config probe runs.
Unity fills a table's storage location in the listing; Iceberg leaves it to
get table, and a table the Iceberg catalog will not serve (a Delta table:
'is not an Iceberg compatible table') falls back to the Unity record and its
own storage format, so Delta and UniForm tables walk under either dialect.
list files resolves a snapshot and writes its active files, one TableFile per
line, each with the table's lease — that stream is what list columns measures;
bytemass is an alias for that level. The files are the snapshot's own set, so
a file a later commit removed is absent;
nothing is collected, so a table of any size costs one log batch plus one file.
--last/--partition keep
only the files the log dates in a window (e.g. 1m, 1h, 1d, 1w, or one UTC day), so a
daily run reads the day's writes without walking what the table already held.
list partitions reads each table's snapshot once, without per-column
statistics, and writes one Partition per partition, sorted by name, once the
table is read. It holds one running total per partition, never the files, and
a table that fails writes nothing. Removed files (Delta tombstones a vacuum
has not deleted, Iceberg entries a snapshot deleted or superseded) are read
first, a path hash and a size each, and counted in their partition unless an
active file still holds the path. Iceberg's merge-on-read delete files are
counted in the partition they narrow, and only when the partition holds one.
A partition's name follows the table's partition column order, so the input is
get table output, which names the columns; a list tables ref is refused.
list partitions [PARENT] reads a catalog when it reads Table records on
standard input. With --store DIR (or PQB_DRIVER_STORE) it reads the store
directly and prints one Partition per line for each partition's newest finished
version, enriched with its processed time and price bounds. PARENT scopes it
to a catalog, schema, table or partition name. pqbench get partition NAME
reads that partition's newest stored results, and pqbench prune
deletes the versions beyond the retained count. All read the store
pqbench-driver run --store DIR fills with its two standalone scripts.
Every level reads its parent's refs on standard input and writes one resource per line, so the walk is a pipe:
pqbench list catalogs | pqbench list schemas | pqbench list tables |
pqbench get table | pqbench list files | pqbench list columns
Detection: _delta_log is Delta (wins UniForm). Iceberg is metadata/version-hint.text, metadata/*.metadata.json, or a .metadata.json path. Needs --features delta and/or iceberg (delta-s3 / iceberg-s3 for s3://).
The stream is NDJSON.
Usage: pqbench list <COMMAND>
Command Alias: ls
Examples:
pqbench list catalogs
pqbench list catalogs | pqbench list schemas | pqbench list tables
echo '"dbx_samples"' | pqbench list schemas
echo '"dbx_samples.nyctaxi"' | pqbench list tables
cat docker/e2e-lakehouse/table.ndjson | pqbench list files | pqbench list columns
cat docker/e2e-lakehouse/table.ndjson | pqbench list files --last 1d | pqbench list columns
pqbench lint data.parquet | pqbench format
pqbench list partitions --store DIR catalogs/main/schemas/sales
pqbench list partitions --store DIR | pqbench summarize partitions
pqbench get partition catalogs/main/schemas/sales/tables/orders/partitions/day%3D1 --store DIR
pqbench prune --store DIR --dry-run
See also:
pqbench get --help read one resource
pqbench bytemass --help alias for `list columns`
pqbench --help catalog auth, PQB_* config
docs/reference/cli.md
Subcommands:¶
catalogs— List the catalogs at the endpointschemas— List the schemas in a catalog (CATALOG)tables— List the tables in a schema (CATALOG.SCHEMA)files— List a table's active files (Table refs on stdin)partitions— List a table's partitions (Table refs on stdin, or a store with--store)columns— List a file's columns and their byte masses (Table-file refs on stdin)
pqbench list catalogs¶
List the catalogs at the endpoint
Usage: pqbench list catalogs
pqbench list schemas¶
List the schemas in a catalog (CATALOG)
Usage: pqbench list schemas [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— catalogs in flight at once
Default value: 64
pqbench list tables¶
List the tables in a schema (CATALOG.SCHEMA)
Usage: pqbench list tables [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— schemas in flight at once
Default value: 64
pqbench list files¶
List a table's active files (Table refs on stdin)
Usage: pqbench list files [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— tables in flight at once
Default value: 64
* --partition <DATE> — read only files the log dates in one UTC day: an ISO date, YYYY-MM-DD; e.g. 2026-10-28
* --last <WINDOW> — read only files the log dates in the last WINDOW, ending now: e.g. 1m, 1h, 1d, 1w
pqbench list partitions¶
List a table's partitions (Table refs on stdin, or a store with --store)
Usage: pqbench list partitions [OPTIONS] [PARENT]
Arguments:¶
<PARENT>— only the partitions under this catalog, schema, table or partition when reading the store
Options:¶
--store <DIR>— the driver's store (default: PQB_DRIVER_STORE)--fan-out <FAN_OUT>— tables in flight at once
Default value: 4
pqbench list columns¶
List a file's columns and their byte masses (Table-file refs on stdin)
Usage: pqbench list columns [OPTIONS]
Options:¶
--fan-out <FAN_OUT>— files in flight at once
Default value: 128
* --local <PATH> — read each footer from this file instead of the blob, keeping the record's name
pqbench sample¶
Keep a sample of a table's files: read table-file records on standard input and
write the kept ones, each with sample_rate set to the probability it was kept
with.
A file is kept with probability rate x size / 256 MiB, capped at one, drawn
from a hash of its name, so the same record always makes the same decision. A
256 MiB file is kept at --rate (1/100 keeps about one in a hundred), a 1 GiB
file four times as often while below the cap, and --rate 1 keeps every file
that has a size. The probability sets the record's weight, its inverse: a sum
over kept records divides each term by sample_rate. A record that already
carries a sample_rate composes with the smaller of the two probabilities,
because both threshold the same hash.
No storage object is read: list files already carries the log's sizes, so the
stage streams and never holds the table. A record with no positive size is an
error, not a silent drop. The coverage line (files and bytes kept) prints on
standard error.
Usage: pqbench sample <COMMAND>
Examples:
cat table.ndjson | pqbench list files | pqbench sample files --rate 1/100 | pqbench bytemass
cat table.ndjson | pqbench list files | pqbench sample files --rate 1/10 | pqbench bytemass
See also:
pqbench list files --help the stream this command samples
pqbench bytemass --help measure the kept files
pqbench --help catalog auth, PQB_* config
docs/reference/cli.md
Subcommands:¶
files— Keep a rate of a table's files, by size
pqbench sample files¶
Keep a rate of a table's files, by size
Usage: pqbench sample files [OPTIONS]
Options:¶
--rate <RATE>— keep probability at 256 MiB; 1 keeps every file
Default value: 1/100
pqbench summarize¶
summarize partitions reads Partition records (list partitions, live or
from the driver's store) and writes one PartitionStats per catalog, schema and
table, in name order, once the input ends: partitions, files, bytes, removed
bytes, the summed cost bounds of the priced partitions, the newest file time,
and the partitions whose process-partition.sh finished at their etag. It
holds one total per catalog, schema and table, never the partitions.
Usage: pqbench summarize <COMMAND>
Examples:
cat table.ndjson | pqbench list partitions | pqbench summarize partitions
pqbench list partitions --store DIR | pqbench summarize partitions
See also:
pqbench list --help the collections the walk lists
docs/reference/cli.md
Subcommands:¶
partitions— Total the partitions per catalog, schema and table
pqbench summarize partitions¶
Total the partitions per catalog, schema and table
Usage: pqbench summarize partitions
pqbench skill¶
Print an agent skill that is compiled into this binary: this is a
document, like --help.
pqbench skill list skills as pqbench.skill lines
pqbench skill parquet-advisor the advisor workflow
pqbench skill parquet-advisor recipes
write-path, table DDL, codec levels
The advisor turns bytemass facts into recipes (ingest settings, Iceberg/Delta/Spark/DuckDB DDL, compression level with pros and cons). It does not measure files.
Usage: pqbench skill [NAMES]...
Examples:
pqbench skill
pqbench skill parquet-advisor
pqbench list catalogs | pqbench format
pqbench skill parquet-advisor recipes
pqbench table-file data.parquet | pqbench bytemass
See also:
pqbench --help documents
docs/reference/skill.md docs/reference/cli.md
Arguments:¶
<NAMES>— skill name, orname document(parquet-advisor recipes)
pqbench proxy¶
Serve the configured endpoint through a local HTTP cache and pacer, and print the proxy's URL as one line on standard output:
pqbench proxy # 127.0.0.1:port, cached, 15/s under unity
pqbench proxy --bind 127.0.0.1:8181 # a fixed address
pqbench proxy --rps 0 # caching only, no pacing
A pqbench command is a stateless HTTP client; this proxy is the only cache
and pacer. Point the processes that share the catalog at its URL:
The proxy holds the one 200 answer for OAuth tokens (POST /oidc/v1/token), vended credentials, and read-only catalog GETs, keyed by method, path, the Authorization header, and the body, so one caller's bearer never answers another's request. Concurrent misses for one key coalesce onto one upstream call. Cached entries are refreshed before the lifetime the upstream reported. A credential-vending route also holds an ambient 400/403/404/501 — a catalog that does not vend — for a cached GET's TTL, so a walk does not re-ask per file; a 401 or a 5xx is never cached.
Updates pass through one pacer: --rps requests a second (default 15 under unity, unpaced under iceberg), and a 429 holds the next slot for its Retry-After (1s when it names none, at most 60s). Nothing is written to disk.
The process runs single-threaded until SIGINT or SIGTERM.
Usage: pqbench proxy [OPTIONS]
Examples:
pqbench proxy --endpoint https://… --token dapi-…
PQB_ENDPOINT="$(pqbench proxy --rps 30)" pqbench list catalogs
pqbench proxy --table-format iceberg --endpoint https://…/v1
pqbench proxy --ttl 0 # cache tokens and credentials only
See also:
pqbench --help auth, PQB_* config
docs/reference/configuration.md docs/reference/authentication.md
Options:¶
--bind <ADDR>— Local address to listen on (port 0 chooses an ephemeral port)
Default value: 127.0.0.1:0
* --rps <RPS> — Upstream catalog requests per second; 0 is unpaced (default: 15 under unity, unpaced under iceberg)
* --ttl <SECS> — Cache TTL in seconds for read-only catalog GET responses; 0 disables GET caching while keeping OAuth and credential caches active
Default value: 60
pqbench prune¶
pqbench prune reads the driver's store (--store DIR or PQB_DRIVER_STORE)
and deletes each partition's versions beyond retained-version-count, the
run-control key (default 5). It also deletes orphaned .stage.* directories
and .failed directories that a newer finished version superseded, then
removes the empty catalog, schema, table and partition directories. A
.failed directory newer than every finished version is kept for inspection.
With --dry-run it prints the paths it would delete and changes nothing.
Usage: pqbench prune [OPTIONS]
Examples:
pqbench prune --store /var/lib/pqbench --dry-run
pqbench prune --store /var/lib/pqbench
See also:
pqbench list --help list the store's partitions
docs/reference/configuration.md retained-version-count
docs/reference/cli.md
Options:¶
--store <DIR>— the driver's store (default: PQB_DRIVER_STORE)--dry-run— print the paths instead of deleting them
This document was generated automatically by
clap-markdown.