Expand description
Utilities for choosing an execution batch size from source statistics.
Constantsยง
- TARGET_
BATCH_ ๐BYTES - Approximate decoded bytes to produce in one batch.
Functionsยง
- estimate_
batch_ size - Estimates a batch size from
(num_rows, estimated_bytes)pairs. - estimate_
row_ ๐width - Returns the ceiling of the estimated bytes per row.
- row_
group_ ๐statistics - Returns
(num_rows, bytes)estimates of the row groups in a Parquet file: the uncompressed size of each row group, and one row of the largest decoded string and binary value bytes per row of the file (see max_row_value_width). Dictionary encoding can make the uncompressed size far smaller than the decoded values. - widest_
row_ ๐group_ statistic - Returns the statistic of row_group_statistics with the widest rows, which bounds the decoded size of a batch read from the file.