chunk_plan
Chunk planning over the flat patch relation.
Implements the “Chunking formalities” spec: the planner consumes the catalog’s flat relation (one row per patch: {dim}_min/max/step envelopes, _{dim}_def_key structural identity, attr columns) and produces a ChunkPlan — an outputs table (one row per output patch) plus a members table binding each output to trimmed slices of source patches. No patch data is touched; assembly happens later.
Portions of the interval/instruction math were ported from the old ChunkManager (now removed) with the spec’s adjudicated corrections applied; Spool.chunk runs on these plans.
Functions
| Name | Description |
|---|---|
| build_chunk_plan | Build a chunk plan from a flat patch relation. |
| build_subdivision_plan | Build a plan cutting each row of a relation into its own pieces. |
| samples_adjusted_envelopes | Adjust envelope columns for patch-local samples residuals. |
| subdivision_pieces | Return the inclusive pieces each row’s cuts divide it into. |
Classes
| Name | Description |
|---|---|
| ChunkPlan | A materialization-free description of a chunk operation. |