#parquet-file #summary #content # #summaries #

app pqcat

A simple utility to print parquet file summaries

2 releases

0.1.1 May 1, 2024
0.1.0 May 1, 2024

#10 in #│

MIT license

15KB

pqcat

This is a simple utility to print a summary of the contents of a parquet file.

Installation

cargo install pqcat

Usage

pqcat <file>

Example

username@hostname some_dir % pqcat accelerometer.parquet
shape: (9_720_794, 4)
┌────────────────────────────┬───────┬───────┬──────┐
 t                          ┆ x     ┆ y     ┆ z    │
 ---                        ┆ ---   ┆ ---   ┆ ---  │
 datetime[μs]               ┆ i32   ┆ i32   ┆ i32  │
╞════════════════════════════╪═══════╪═══════╪══════╡
 2023-06-15 20:35:23.734994 ┆ 1713  ┆ 215   ┆ 5783 │
 2023-06-15 20:35:23.735290 ┆ 1713  ┆ 215   ┆ 7763 │
 2023-06-15 20:35:23.735586 ┆ 1713  ┆ 215   ┆ 7673 │
 2023-06-15 20:35:23.735882 ┆ 1713  ┆ 215   ┆ 7762 │
 2023-06-15 20:35:23.736178 ┆ 1713  ┆ 215   ┆ 7673 │
 …                          ┆ …     ┆ …     ┆ …    │
 2023-06-15 21:23:40.543990 ┆ -1126 -4599 ┆ 6770 │
 2023-06-15 21:23:40.544286 ┆ -1126 -4599 ┆ 6758 │
 2023-06-15 21:23:40.544582 ┆ -1126 -4599 ┆ 6756 │
 2023-06-15 21:23:40.544878 ┆ -1126 -4599 ┆ 6747 │
 2023-06-15 21:23:40.545174 ┆ -1126 -4599 ┆ 6741 │
└────────────────────────────┴───────┴───────┴──────┘

Dependencies

~38–68MB
~1.5M SLoC