Skip to main content

Module parquet

Module parquet 

Source
Expand description

SST in parquet format.

Modulesยง

file_range
Structs and functions for reading ranges from a parquet file. A file range is usually a row group in a parquet file.
flat_format
Format to store in parquet.
format
Format to store in parquet.
helper ๐Ÿ”’
json_align ๐Ÿ”’
Shared JSON2 conversion for Parquet streams and in-memory query batches. Query types must agree before merge/dedup; compaction Rewrite retains physical layouts.
metadata
parallel_writer
Arrow to Parquet writer that encodes the columns of a row group in parallel.
prefilter
Prefilter framework for parquet reader.
push_decoder
Push decoder stream implementation for SST parquet files.
read_columns
reader
Parquet reader.
row_group
Parquet row group reading utilities.
row_selection
stats ๐Ÿ”’
Statistics of parquet SSTs.
writer
Parquet writer.

Structsยง

Json2TargetLayout ๐Ÿ”’
Fixed JSON2 physical layout used while rewriting compaction input.
RowGroupValueBytes
Tracks, over the row groups of a file, the largest var_len_value_bytes of a row group and the largest of those bytes per row. Row groups are cut every row_group_rows rows from the start of the file like the parquet writers do; the last one may be shorter.
SstInfo
Parquet SST info returned by the writer.
WriteOptions
Parquet write options.

Constantsยง

COLUMN_INDEX_TRUNCATE_LENGTH ๐Ÿ”’
Truncation length of min/max values in the parquet column index.
DEFAULT_READ_BATCH_SIZE ๐Ÿ”’
Default batch size to read parquet files.
DEFAULT_ROW_GROUP_SIZE
Default row group size for parquet files.
LARGE_VALUE_STATS_THRESHOLD ๐Ÿ”’
Values at least this long make min/max statistics of a field column useless for pruning, while untruncated statistics copy two whole values per row group into the footer.
MAX_ROW_GROUP_VALUE_BYTES_KEY
Footer key holding the decoded bytes of string and binary values in the row group with the most such bytes.
MAX_ROW_VALUE_WIDTH_KEY
Footer key holding the largest average decoded bytes of string and binary values per row within one row group.
PARQUET_METADATA_KEY
Key of metadata in parquet SST.
TARGET_ROW_GROUP_BYTES ๐Ÿ”’
Average uncompressed bytes in one row group that row_group_size_for aims at.

Functionsยง

apply_column_compression ๐Ÿ”’
Applies the per-column options declared with COMPRESSION WITH (...).
apply_float_field_encoding ๐Ÿ”’
Applies the configured encoding to direct floating-point field columns.
apply_internal_column_encoding ๐Ÿ”’
Applies the encodings of the time index and internal columns shared by every SST writer.
decoded_input_size ๐Ÿ”’
Returns the rows and the decoded bytes of the SSTs with footers, for row_group_size_for.
footer_u64 ๐Ÿ”’
Returns the value of key, or None when the footer has no parseable value for it.
large_value_fields ๐Ÿ”’
Returns string and binary field columns whose longest value in batch reaches LARGE_VALUE_STATS_THRESHOLD.
max_row_group_decoded_size
Returns the size of the largest row group of metadata, counting string and binary values at their decoded size (see max_row_group_value_bytes).
max_row_group_uncompressed_size ๐Ÿ”’
Returns the uncompressed size of the largest row group of metadata, summed over its column chunks.
max_row_group_value_bytes ๐Ÿ”’
Returns the MAX_ROW_GROUP_VALUE_BYTES_KEY value of the footer, or the same quantity derived from the column chunk size statistics when the footer predates the key.
max_row_value_width ๐Ÿ”’
Returns the MAX_ROW_VALUE_WIDTH_KEY value of the footer, or the same quantity derived from the column chunk size statistics when the footer predates the key.
row_group_size_for ๐Ÿ”’
Returns the row group size for data of rows rows and bytes uncompressed bytes.
row_group_value_bytes_from_size_statistics ๐Ÿ”’
Returns (num_rows, value_bytes) of each row group, where value_bytes sums the unencoded_byte_array_data_bytes size statistic of the column chunks that var_len_value_bytes counts: top-level string and binary columns that readers do not decode as dictionaries.
skip_statistics ๐Ÿ”’
Disables min/max statistics of columns.
var_len_value_bytes ๐Ÿ”’
Returns the bytes of string and binary values in batch once decoded.

Type Aliasesยง

Json2RewriteTargets ๐Ÿ”’
JSON2 physical layouts requested by a compaction read.