Like the cast projection after an Iceberg engine-table scan, restores the writerβs
declared PK types using SQL casts. Metadata columns must match exactly.
Build expressions once and reuse unchanged columns.
Delete-diff comparisons remain in physical types on both sides.
Delete files are immutable, so the same location identifies the same deleted positions. A
deletion vector is a blob inside a Puffin file, so its offset and length are part of its location.
Scans one row group of an output data file, sends its survivor rows to chunk_tx, and returns
the positions of its conflict rows. A scan error is sent to chunk_tx too, so the resolver
fails without waiting for the other scans.
Builds the survivor chunk [pk_columns.., data_file, position] of a batch of output rows whose
first row is at first_position in path. Rows whose pk was deleted during the compaction
window are recorded in conflicts instead. Returns None if no row survives.
data_file is the UUID in UUID mode, or the path in legacy mode.