Skip to main content

Module batch_size

Module batch_size 

Source
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.
largest_row_group_statistic ๐Ÿ”’
Returns (num_rows, uncompressed_bytes) of the largest row group in a Parquet file, which bounds the decoded size of a batch read from it.