Skip to main content

Module compat

Module compat 

Source
Expand description

Utilities to adapt readers with different schema.

Structsยง

FlatCompatBatch ๐Ÿ”’
A helper struct to adapt schema of the batch to an expected schema.
FlatCompatPrimaryKey ๐Ÿ”’
Helper to make primary key compatible for flat format.
FlatRewritePrimaryKey ๐Ÿ”’
Helper to rewrite primary key to another encoding for flat format.

Enumsยง

IndexOrDefault ๐Ÿ”’
Index in source batch or a default value to fill a column.

Functionsยง

has_same_columns_and_pk_encoding ๐Ÿ”’
Returns true if left and right have same columns and primary key encoding.
is_primary_key_same ๐Ÿ”’
Returns true if the actual primary keys is the same as expected.
repeat_vector ๐Ÿ”’
Repeats the vector value to_len times.