Expand description
Glue Parquet files together without decoding them.
concat joins Parquet files that share one schema into one file by copying each
row group’s encoded column chunks (pages, dictionaries, statistics) as they are:
nothing is decoded or re-encoded, so the cost is the bytes copied, whatever the
nesting.
The output has the inputs’ row groups in order, the first input’s schema and
key-value metadata (ARROW:schema, which Arrow readers need for the files’ Arrow
types), the inputs’ page indexes and bloom filters where they have them, and the
inputs’ column orders, under which their statistics were computed (see
footer::restore_column_orders).
use std::path::{Path, PathBuf};
let inputs = [PathBuf::from("a.parquet"), PathBuf::from("b.parquet")];
let rows = pq_glue::concat(&inputs, Path::new("ab.parquet"))?;With the parallel feature, concat_many runs many such concatenations at once,
on rayon. With the read feature, [read::read] reads a file to Arrow record
batches, its row groups decoded in parallel.
Modules§
- footer
- The output footer’s column orders.
Enums§
Functions§
- concat
- Concatenate
inputs, in order, intooutput, returning the rows written.