Expand description
Streaming materialize: pull DF RecordBatch streams batch-by-batch, write, drop.
Peak retained memory ≈ in-flight batch + Parquet row-group encoder + unique tracker.
Never holds a full Vec<RecordBatch> for the model result.
Structs§
- Materialize
Write Options - Options for stream / collect writers (derived from
MaterializeConfig). - Stream
Write Stats - Result of a successful stream materialize.
Functions§
- atomic_
publish - Atomically replace
destwithpartial(same filesystem). Cleans partial on failure. - load_
parquet_ batches - Load small Parquet file into memory for optional MemTable ref() after stream write.
- materialize_
stream - Stream a DataFusion result into
destination_pathfor the given format. - partial_
path_ for - Staging path for atomic publish:
dir/.name.ext.rbt-partial. - write_
empty_ parquet - Empty schema-only Parquet (0 rows) so ref() registration has a file.
- write_
parquet_ batches_ atomic - Collect-mode helper: write batches with same Parquet props / atomic publish as stream.
- write_
parquet_ stream - Stream write Parquet with atomic publish + optional streaming assertions.