Module compat

Source
Expand description

Utilities to adapt readers with different schema.

Structsยง

CompatBatch ๐Ÿ”’
A helper struct to adapt schema of the batch to an expected schema.
CompatFields ๐Ÿ”’
Helper to make fields compatible.
CompatPrimaryKey ๐Ÿ”’
Helper to make primary key compatible.
CompatReader
Reader to adapt schema of underlying reader to expected schema.
RewritePrimaryKey ๐Ÿ”’
Adapter to rewrite primary key.

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.
may_compat_fields ๐Ÿ”’
Creates a CompatFields if needed.
may_compat_primary_key ๐Ÿ”’
Creates a CompatPrimaryKey if needed.
may_rewrite_primary_key ๐Ÿ”’