Expand description
Spill-to-disk infrastructure for blocking operators.
Provides:
SpillConfig / SpillManager: temp-file lifecycle managementSpilledRun / RunWriter / RunReader: the single spill file format — columnar v2 run (LRSC): versioned header, schema fingerprint, per-section checksums, optional per-section zstd body (columns are contiguous postcard-encoded value slices, one section per column group)HashPartitionSpiller: per-partition run writersDiskQuota: separate disk usage tracking for spill operations
Structs§
- Disk
Quota - Tracks disk space used by spill operations for a single query.
- Hash
Partition Config - Configuration for hash-based partition spill.
- Hash
Partition Spiller - A partition spill writer that routes rows by hash into separate files.
- RunHeader
- Header for a columnar spill run file.
- RunReader
- Reads a columnar run file back, validating the header (magic, version, checksum) on open and each section frame (checksum) on decode.
- RunWriter
- Writes a columnar run to disk with a versioned header, schema fingerprint, and per-section checksums.
- Spill
Config - Configuration for disk spill behavior.
- Spill
Manager - Manages spill-file creation, cleanup, and tracking for one query execution.
- Spilled
Run - Metadata for a single spill run file (sorted spill).
Enums§
- RunCompression
- Compression marker stored per section frame.
Constants§
- COLLECTOR_
RUN_ ROWS_ MAX - Maximum rows per terminal-collector run file. Bounds both the writer-side body buffer and the reader-side full-run load peak.
- COLLECTOR_
SPILL_ ROWS_ DEFAULT - Default terminal-collector spill threshold in logical rows.
- HASH_
JOIN_ MAX_ DEPTH - Maximum Grace Hash Join repartition depth.
- HASH_
JOIN_ PARTITIONS_ DEFAULT - Default Grace Hash Join partition count.
- HASH_
PARTITION_ SEED - HASH_
PARTITION_ VERSION - Fixed hash algorithm for partition spill operations.
Functions§
- finalize_
partitions_ with_ runtime - Finalize a partition spiller through the runtime’s spill manager.
- hash_
bytes_ partition - Compute the partition index for pre-serialized key bytes.
- hash_
column_ partition - Compute one partition index per batch row over a column subset.
- hash_
row_ partition - Compute the partition index for a row of values.
- schema_
fingerprint - Schema fingerprint for a run file: FNV-style hash over column names.