Skip to main content

Module json_align

Module json_align 

Source
Expand description

Shared JSON2 conversion for Parquet streams and in-memory query batches. Query types must agree before merge/dedup; compaction Rewrite retains physical layouts.

Structsยง

JsonSchemaAligner
Adapts Parquet record batches to the output schema expected by the reader.
RewriteSettings ๐Ÿ”’
Resolved settings for rewriting one JSON2 column to a target physical layout.

Enumsยง

AlignMode ๐Ÿ”’
Specifies how JSON columns in a record batch are aligned.
ResolvedAlignMode ๐Ÿ”’
Alignment mode with parsed rewrite metadata and validated target layouts.

Functionsยง

align_array ๐Ÿ”’
align_projected_batch ๐Ÿ”’
align_query_batch ๐Ÿ”’
Aligns existing JSON2 columns to the Arrow types of matching fields in query_schema, matching columns by name. Preserves column order and skips columns absent from the batch.
resolve_align_mode ๐Ÿ”’
Parses rewrite metadata and validates target layouts against the output schema.
rewrite_array ๐Ÿ”’

Type Aliasesยง

ProjectedRecordBatchStream ๐Ÿ”’