Skip to main content

Module dictionary

Module dictionary 

Source
Expand description

Decoding a column chunk’s dictionary page directly into an Arrow array, independent of the row-by-row ArrayReader machinery.

This is useful for callers that want the set of distinct values stored in a dictionary-encoded column chunk without reading any data pages, e.g. to prune a row group when the query predicate’s literals are known not to be in the dictionary.

Functions§

decode_dictionary_page 🔒
Decodes the dictionary page of a column chunk into an [ArrayRef].
dictionary_page_crypto_context 🔒
Builds the crypto context needed to decrypt the dictionary page of column_metadata, or None if the file (or this column) isn’t encrypted.