You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reuse TT numeric reductions in temporal row queries - #279
Reuse ordered PQL numeric accumulators after general aggregate frame/group selection, retaining frames for multi-target/window sharing. Dispatch physical types and operations outside row loops, check each projected column once, and avoid computing unused higher moments for AVG. Preserve existing PQL behavior, exact typed sums/extrema, null/nonfinite and floating-order policies.
Arrow SUM/extrema kernels were tried but not adopted: floating cancellation and first-equal signed-zero results differ. This does not rewrite existing PQL traversal or introduce a new executor.
Propagate genuine specialization failures through TT stage execution; decline missing RowPack payloads explicitly and preserve established NULL handling.
Review repairs: 1,993 kumo-pytorch tests passed (3 skipped, 47 notebook deselections); 444 affected native tests passed; all train-table Rust suites passed (514 tests, 3 ignored); strict affected Clippy and Python Ruff passed. The final native binary also passed 39 anchor tests and all 12 aggregate-program tests after the clock negative control was isolated. #279–#282 compile at their own PR boundaries (tree identities checked). Existing test expectations were not weakened; new regressions cover the repairs. No merge or live sweep. GPU benchmark results remain separate and do not establish this revision’s speedup.
Numeric review update (2026-11-13): Integer Arrow columns now use the common projected floating numeric reducer where the frontend output contract is floating. Typed integer extrema and checked integer sums retain their existing typed path. Numeric review repair: 364 native integration tests, 287 Rust TT unit tests and 12 shared-numeric tests passed; strict TT Clippy passed. Six regression cases fail on the previous binary and pass with this repair. Existing cancellation, exact integer, clock, cap and ordering expectations were preserved. No new GPU/performance claim.
Propagate genuine specialization failures through TT stage execution; decline missing RowPack payloads explicitly and preserve established NULL handling.
Expose a fallible edge-reader path for the numeric specialization while preserving older callers
Propagate genuine specialization failures through TT stage execution; decline missing RowPack payloads explicitly and preserve established NULL handling.
Exercise 600 real node reads across the 512-row decoder boundary
Cover the PQL Nodes route independently of projected temporal batches
Validation
Review repairs: 1,993 package tests passed (3 skipped); 444 affected native tests passed; 514 Rust tests passed (3 ignored); affected Clippy and Ruff passed. Own-boundary compile checks passed for #279–#282. Final clock admission regressions: 12 passed; native anchors: 39 passed. Tests add focused negative controls without weakening existing expected outputs. GPU diagnostics remain separate from these verification results.
Numeric review follow-up — 2026-11-13
Integer Arrow columns now use the common projected floating numeric reducer where the frontend output contract is floating. Typed integer extrema and checked integer sums retain their existing typed path.
Numeric review repair: 364 native integration tests, 287 Rust TT unit tests and 12 shared-numeric tests passed; strict TT Clippy passed. Six regression cases fail on the previous binary and pass with this repair. Existing cancellation, exact integer, clock, cap and ordering expectations were preserved. No new GPU/performance claim.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The change adds grouped numeric execution for compatible PQL aggregates and eligible aggregate-only temporal queries. Aggregate input resolution and accumulator behavior are shared across execution paths. Temporal queries use the grouped path for supported one-hop, second-based numeric operations and retain the existing evaluator when eligibility checks fail or grouped execution returns no result. Tests cover numeric edge cases, temporal windows, and clipped time filtering.
Sequence Diagram(s)
sequenceDiagram
participant TemporalQuery
participant resolve_named_path
participant execute_numeric_group
participant accumulate_numeric_batch
TemporalQuery->>resolve_named_path: Resolve frame relation path
resolve_named_path-->>TemporalQuery: Return resolved edges
TemporalQuery->>execute_numeric_group: Submit eligible operations and projected rows
execute_numeric_group->>accumulate_numeric_batch: Accumulate selected numeric columns
accumulate_numeric_batch-->>execute_numeric_group: Return accumulator status
execute_numeric_group-->>TemporalQuery: Return aggregate results or no grouped result
Loading
Merge Risk: Minimal · previous review 0945a
Grouped numeric aggregation now falls back cleanly to per-aggregate execution when a group is declined, so rows with non-finite values no longer cause repeated traversals. No concrete merge-blocking risk remains in the reviewed changes.
Security architecture risk: Minimal · up to bb52c
Queries retain their existing input checks and filtering, and failed optimized attempts discard partial results before falling back. No material security risk was identified in the reviewed changes.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The inspected exposure is numeric computation over plans and graph data accessible through the existing reader and resolved table handles. The new route does not introduce a credential or identity transition. Effects on external service or tenant isolation cannot be established from the supplied deployment context.
Trust Boundaries and Controls
observed — Caller-supplied temporal paths are resolved within the existing graph reader. Resolution requires matching relation name, source type, and destination type; frame validation checks the root type and time-bound shape. Shared execution uses the same materialized rows rather than selecting a broader neighborhood.
Resilience and Maintainability Implications
observed — Accumulator state is fresh per root and local to an execution attempt. A failed batch discards the entire grouped result, including earlier roots. PQL then creates fresh per-operation accumulators; temporal fallback reuses only immutable selected input, not failed reduction state. Results become visible to callers only after successful grouped completion.
Pre-merge checks: 2 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Change Map Design Review
(previously flagged, unaddressed)
The PR conversation comment with marker <!-- kumo-pr-change-map --> (the Change map linked from the PR description) was retrieved and reviewed as a proposed design for PR #279 (NVIDIA/kumo-engine, a…
Revise the Change map comment on PR #279 so that it: 1. States the observed failure or release requirement that motivates the shared numeric path. Cite measured evidence. If no measurement exists, say so and mark the performance motivation …
Passed checks: 2 passed
Check name
Status
Explanation
Pr Size
The PR size check fails only when the changed-file count exceeds 40. The supplied raw summary lists 10 changed files: 1. packages/diskgraph/diskgraph-pybind/README.md 2. packages/diskgraph/diskgraph-p…
Public Resource Access
Summary: The PR adds or changes no external resource reference in repository files. The check therefore passes. Evidence: - The PR touches ten diskgraph files: `packages/diskgraph/diskgraph-py…
Full details: Pr Size
Explanation
The PR size check fails only when the changed-file count exceeds 40. The supplied raw summary lists 10 changed files: 1. packages/diskgraph/diskgraph-pybind/README.md 2. packages/diskgraph/diskgraph-pybind/python/tests/test_shared_numeric_aggregates.py 3. packages/diskgraph/diskgraph-pybind/python/tests/test_temporal_sequence_limit.py 4. packages/diskgraph/diskgraph-pybind/src/temporal_query.rs 5. packages/diskgraph/diskgraph-train-table/src/ttgen_accumulator.rs 6. packages/diskgraph/diskgraph-train-table/src/ttgen_executor.rs 7. packages/diskgraph/diskgraph-train-table/src/ttgen_resolve.rs 8. packages/diskgraph/diskgraph-train-table/tests/ttgen_integration.rs 9. packages/diskgraph/diskgraph-core/src/accumulators.rs 10. packages/diskgraph/diskgraph-train-table/src/ttgen_traversal.rs The summary's per-file line totals are about 1,100 lines. Ten files is well below the threshold of 40. Limitation: the local checkout is detached at b020e5d, a single commit with no usable base. It has no merge base with main, and HEAD~1 does not exist. I could not compute the file list from git. The count therefore rests on the supplied summary. That summary appears to cover every changed file, and the total size makes a count above 40 unlikely. Line counts were ignored as the check requires.
Full details: Public Resource Access
Explanation
Summary: The PR adds or changes no external resource reference in repository files. The check therefore passes. Evidence: - The PR touches ten diskgraph files: packages/diskgraph/diskgraph-pybind/README.md, two pybind Python tests, temporal_query.rs, four diskgraph-train-table source/test files, and diskgraph-core/src/accumulators.rs. Scanning every added and removed line in these files for http(s)://, github.com, or Markdown link syntax found none. - The README change adds prose only. It replaces the "one traversal and one rowpack decode" wording and adds a paragraph about aggregate lowering. It adds no URL or repository location. - The local checkout does not match the PR's base. origin/main..HEAD contains one commit (b020e5d), but the diff against origin/main spans 171 files and the commit name-list spans about 8,000 files, including UI, Docker, and docs URLs. The raw summary does not list those files as part of this PR, so I did not attribute those URL changes to it. The PR's own file list contains no URL additions. - The PR author is Victsm, from the provider-reported primary record. Author identity does not affect this check. Out-of-scope reference: The PR description links to https://github.com/NVIDIA/kumo-engine/pull/279#issuecomment-6773006292 as a "Change map". This link is in the PR description, not in repository content. It is a navigation aid, not a resource needed to build, test, or use the changed code. I could not test its anonymous access here. The check does not require that, so it does not change the verdict. Other references: The PR text cites #279–#283 and #310. These are issue or PR numbers, not URLs or repository locations.
Full details: Change Map Design Review
Explanation
The PR conversation comment with marker <!-- kumo-pr-change-map --> (the Change map linked from the PR description) was retrieved and reviewed as a proposed design for PR #279 (NVIDIA/kumo-engine, author Victsm). The map has file coverage, but the design review finds these substantive problems. 1. No observed failure or necessity case. The comment does not state an observed failure, a release requirement, or the existing behavior it inspected. Its only heading is the 2026-11-13 review-repair commit message. The rationales are generic. Examples: "Catch wrong answers and unintended fallback/reconstruction" and "Verify numerical, clock, identity, lifecycle or route behavior of this slice" (test rows). The ttgen_accumulator.rs rationale is "Avoid duplicate numeric reducers and repeated invariant work." The PR description says the bounded tests "do not claim cold-cache or full-training speedups" and that GPU benchmark results "do not establish this revision's speedup." So the table gives no measured reason for the new shared execution path. This is a proven gap in the comment, not a code defect. 2. No stopping condition. The comment does not say when the slice is complete or which optional refinements are excluded. The PR description mentions "separate local aggregate-statistics/native-length-planning follow-ups," but the table does not separate them. 3. Stale or non-existent symbol. The ttgen_resolve.rs row names resolve_scalar_aggregate. A search of refs/coderabbit/pre-merge-check/head finds no such function. The actual functions are resolve_op, resolve_aggregate_input and resolve_named_path. The row misleads reviewers about where the change lives. 4. Non-scope descriptor. The ttgen_traversal.rs row uses "Review repairs" as its scope. That is a commit title, not a function or scope. Per the check, the scope should name iter_edge and the new iter_edge_checked. 5. Misleading or incomplete explanation for ttgen_traversal.rs. The "Why" says the change propagates genuine specialization failures. The new iter_edge_checked does return SystemError. However, the legacy iter_edge still maps every reader or segment error to Vec::new() through .unwrap_or_default(). Its callers still include pseudo_time.rs:206 and ttgen_executor.rs:2606. The map does not disclose that silent-empty behavior remains for these callers. 6. Omitted material behavior. The table does not mention these changes, which the raw summary and code show: - execute_stages now returns TTGenResult<bool> and propagates errors. The ttgen_executor.rs row says only "Reuse projection and numeric accumulators." - NumericAggregatePolicy::TemporalQuery changes Sum behavior. Sum returns null when rows are selected but no numeric value is observed (ttgen_executor.rs around lines 3124–3172). - temporal_query.rs adds shared_numeric_frame (line 1674), which gates on eligibility: one hop, second-based clock, primary key, and no lower-only bound. Fallback to materialization is also new. The row describes only "thin Python conversion/merge glue." - The ttgen_integration.rs row omits the reader-error propagation test, which is the only test for that path. Verified as accurate.update_running_mean is used at accumulators.rs:191, temporal_query.rs:1315 and ttgen_accumulator.rs:151. The new arithmetic matches the original mean update. The execute_numeric_group, execute_aggregate, accumulate_numeric_batch, observe_numeric_row and accumulate_numeric rows name real symbols. I did not verify the claim that dispatch happens outside row loops. Uncertain design questions (not proven defects). Is a new shared PQL/TT numeric path needed when no speedup is shown? Should legacy iter_edge keep swallowing reader errors? Verdict basis. The comment fails the required design elements: observed failure, inspected behavior, and stopping condition. It also contains a non-e… [truncated to fit comment limits]
Resolution
Revise the Change map comment on PR #279 so that it: 1. States the observed failure or release requirement that motivates the shared numeric path. Cite measured evidence. If no measurement exists, say so and mark the performance motivation as unproven. 2. States the existing behavior that was inspected, for example the existing iter_edge callers and the existing PQL/TT reducers. 3. Replaces resolve_scalar_aggregate with the real symbols: resolve_op, resolve_aggregate_input and resolve_named_path. 4. Replaces the "Review repairs" scope in the ttgen_traversal.rs row with iter_edge and iter_edge_checked. States that legacy iter_edge still returns an empty vector on reader errors, and lists its remaining callers (pseudo_time.rs, ttgen_executor.rs). Either change those callers or justify keeping the silent-empty behavior. 5. Adds the omitted behavior: the execute_stagesTTGenResult<bool> change, the TemporalQuery Sum-returns-null policy, the eligibility gate and fallback for shared_numeric_frame, and the reader-error test. 6. Replaces the generic rationales with row-specific ones tied to a named behavior or test. 7. Adds a stopping condition and lists the optional follow-ups (aggregate-statistics and native-length planning) as excluded from this PR. Then reassess the design. If no measured need exists, consider narrowing the PR to the correctness fixes (the review repairs and the clock-ceiling regression) and deferring the shared-execution route.
Latest assessment: Change Map Design Review
Latest assessment: The latest assessment was inconclusive; the previous failure remains unresolved.
Latest explanation: The check reviews the PR conversation comment marked <!-- kumo-pr-change-map -->. This sandbox does not contain that comment. The checkout is at PR head b020e5d, and the only local reference is in docs/development/review.md. This run could not read the current comment text, so I cannot confirm whether it was revised after the standing FAIL. I checked the code-level claims from the prior failure: - resolve_scalar_aggregate does not appear anywhere in the checkout. The prior claim that this symbol is stale is confirmed. - iter_edge in ttgen_traversal.rs (lines 38-47) still returns unwrap_or_default() on reader errors. iter_edge_checked (lines 50-56) returns SystemError. Callers of iter_edge include ttgen_executor.rs:2606 and pseudo_time.rs:206. The silent-empty behavior therefore remains for those callers. - shared_numeric_frame exists in packages/diskgraph/diskgraph-pybind/src/temporal_query.rs (defined at line 1674, called at line 1887). The eligibility gate and fallback are real code behavior that a map must describe. - The PR description states that the bounded tests do not claim speedups, and that GPU benchmark results do not establish this revision's speedup. So no measured performance motivation for the shared numeric path appears in the PR text. I cannot verify the comment's rows, rationales, or stopping condition from this environment. A PASS would require reading the current comment, and this run cannot establish that. The standing FAIL is therefore neither addressed nor refuted by current evidence.
Latest resolution: Make the Change map comment readable from this environment, or provide its current text, then rerun the check. Also revise the comment so that it: 1. States the observed failure or release requirement that motivates the shared numeric path. Cite measured evidence. If no measurement exists, say so and mark the performance motivation as unproven. 2. States the existing behavior that was inspected, including the existing iter_edge callers (ttgen_executor.rs:2606, pseudo_time.rs:206) and the existing PQL and TT reducers. 3. Replaces any reference to resolve_scalar_aggregate with the real symbols: resolve_op, resolve_aggregate_input, and resolve_named_path. 4. Replaces the "Review repairs" scope in the ttgen_traversal.rs row with iter_edge and iter_edge_checked. States that legacy iter_edge still returns an empty vector on reader errors. Either changes those callers to propagate errors, or justifies keeping the silent-empty behavior. 5. Adds the omitted behavior: the execute_stages change to TTGenResult<bool>, the NumericAggregatePolicy::TemporalQuery Sum-returns-null rule, the eligibility gate and fallback in shared_numeric_frame, and the reader-error propagation test in ttgen_integration.rs. 6. Replaces generic rationales with row-specific rationales tied to a named behavior or test. 7. Adds a stopping condition. Lists the aggregate-statistics and native-length-planning follow-ups as excluded from this PR. Then reassess the design. If no measured need exists, consider narrowing the PR to the correctness fixes (the review repairs and the clock-ceiling regression) and deferring the shared-execution route.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
2744-2770: Minor · Performance & Scalability · Quick win
Run the whole group per operation when the grouped attempt declines.
execute_numeric_group can return None after a full traversal and decode. This happens when accumulate_numeric_batch finds a non-finite value. The loop then handles only stage.ops[position] with the per-operation path and advances position by one. On the next iteration, map_while builds the group again from the remaining suffix. If that suffix has more than one operation, the grouped path traverses and decodes the same rows again, and it fails the same way.
Example: a stage has k compatible Sum operations and the entity has one inf value. That entity and timestamp then costs k−1 failed grouped traversals plus k per-operation traversals. The cost is quadratic in the group size, on every row that has a non-finite value.
The loop also allocates a groupVec for every Aggregate operation on every row, including single-operation groups.
When the grouped attempt declines, evaluate all members of group with execute_aggregate and then skip past the group.
♻️ Proposed fix
- if group.len() > 1 {+ if group.len() > 1 {
let cutoff = observation_ts.unwrap_or(Abs::from_raw(0));
if let Ok(Some(values)) = execute_numeric_group(&group, &[entity_node], &[cutoff],
...
}) {
for (aggregate, mut column) in group.iter().zip(values) {
aliases[aggregate.alias_idx] = column.pop().unwrap();
}
- position += group.len();- continue;+ } else {+ for aggregate in &group {+ aliases[aggregate.alias_idx] = execute_aggregate(+ plan, entity_node, aggregate, entity_cols, observation_ts,+ link_frequencies, link_split_values,+ );+ }
}
+ position += group.len();+ continue;
}
The signed-zero check never reaches the shared path.
The test queries roots [3, 4] in one batch. accumulate_numeric_batch returns false when it finds the inf value of user 3. execute_numeric_group then returns None for the whole batch. The general evaluator therefore computes both the actual and reference results.
As a result, the shared reducers never see the -0.0/0.0 rows of user 4. A signed-zero regression in observe_numeric_row with keep_first_equal would pass this test. Query user 4 by itself so that the shared path runs for it.
💚 Proposed fix
def test_nonfinite_and_signed_zero_keep_general_numeric_policy(numeric_graph):
- actual = query(numeric_graph, [3, 4], operations=("sum", "mean", "min", "max"))- reference = query(numeric_graph, [3, 4], general=True, operations=("sum", "mean", "min", "max"))- for name in actual:- for left, right in zip(actual[name].to_pylist(), reference[name].to_pylist()):- assert left == right or math.isnan(left) and math.isnan(right), name- if left == 0.0:- assert math.copysign(1, left) == math.copysign(1, right), name+ operations = ("sum", "mean", "min", "max")+ # Separate batches: a nonfinite anchor makes the whole batch fall back.+ for keys in ([3], [4]):+ actual = query(numeric_graph, keys, operations=operations)+ reference = query(numeric_graph, keys, general=True, operations=operations)+ for name in actual:+ for left, right in zip(actual[name].to_pylist(), reference[name].to_pylist()):+ assert left == right or math.isnan(left) and math.isnan(right), name+ if left == 0.0:+ assert math.copysign(1, left) == math.copysign(1, right), name
The existing grouped PQL tests use a small fixture. The 600-row Python test uses NumericRows::Projected, so it does not test the 512-row NumericRows::Nodes chunks.
Add Rust tests that compare grouped and per-operation PQL results for more than 512 rows, nulls, non-finite fallback, and window bounds. Check that the grouped path runs rather than silently falling back.
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
Key 3 tests the non-finite fallback. Key 4 already provides finite signed zeros, but the test can pass if shared execution declines and both queries use the general evaluator. Add a route assertion for key 4.
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
Integers never take this path. execute_numeric_group only accepts Float32/Float64 columns, so any SUM/AVG/MIN/MAX over an int column (counts, quantities, cents) goes through the old reducer. Is there a reason for that?
It also falls back on more than one hop, group-by, functions other than count/sum/mean/min/max, a non-seconds clock, a start without a stop, and tables without a primary-key map. Most real aggregates hit at least one of these.
accumulate_numeric_batch checks operation.func and does a downcast/Option per column inside the per-row loop. Neither changes between rows. For a perf PR I'd hoist both out of the loop, or use Arrow's sum/min/max kernels over the selection.
if let Ok(Some(values)) = execute_numeric_group(..) drops errors. A rowpack that fails to decode falls back to read_column_f64, which reads it as NULL: COUNT still counts the row, SUM/AVG/MIN/MAX skip it, and the training table is written with no error.
Changing it to ? isn't enough, because for a node with no rowpack data the fast path returns Err (:3142) where the general path reads NULL. Return Ok(None) for missing data and propagate every other error.
accumulate_numeric_batch only works in f64, which is why integer columns decline. Can we add an integer lane (a checked i128 sum like reduce_rows, integer min/max, f64 avg) so they get the fast path too?
Addressed in b020e5d6: projected integer columns now join the shared numeric batch executor for PQL numeric reductions (and compatible floating row reductions), rather than declining solely because the stored column is integer. Conversion is once per bounded projected array; no per-row type downcasts or new Arrow dependency. Exact sum_type integer sums and typed integer extrema retain their shared typed reducer instead of losing precision through f64. #279/#280/#281 compile independently; final-source regression tests pass.
## Summary
Represent scalar PQL selection in the shared row-aggregate IR. Preserve
the public PQL Aggregate contract and specialized list/link/forecast
paths.
Dependency order: #279 → #280 → #281 → #282 → #283 → #310.
## Validation
Latest reducer revision: 383 native aggregation/clock/order tests, 431
Rust TT unit/integration tests and 33 core accumulator tests passed;
strict affected Clippy passed. Matched one-thread, CPU-pinned checks
over 1,048,576 events preserve all aggregation/PQL output hashes. These
bounded tests do not claim cold-cache or full-training speedups. Our
separate local aggregate-statistics/native-length-planning follow-ups
remain unpublished.
## Change map
#280 (comment)
## Review repairs — 2026-11-13
Handle touching/collapsed encoded windows without an overlap assertion;
keep calendar grouping eligibility independent of operation order.
Review repairs: 1,993 kumo-pytorch tests passed (3 skipped, 47 notebook
deselections); 444 affected native tests passed; all train-table Rust
suites passed (514 tests, 3 ignored); strict affected Clippy and Python
Ruff passed. The final native binary also passed 39 anchor tests and all
12 aggregate-program tests after the clock negative control was
isolated. #279–#282 compile at their own PR boundaries (tree identities
checked). Existing test expectations were not weakened; new regressions
cover the repairs. No merge or live sweep. GPU benchmark results remain
separate and do not establish this revision’s speedup.
Numeric review update (2026-11-13): General row reductions preserve the
declared PQL nonfinite mean/extrema policy rather than falling back to
default typed-row rules. Default row-query policies remain distinct and
explicit. Numeric review repair: 364 native integration tests, 287 Rust
TT unit tests and 12 shared-numeric tests passed; strict TT Clippy
passed. Six regression cases fail on the previous binary and pass with
this repair. Existing cancellation, exact integer, clock, cap and
ordering expectations were preserved. No new GPU/performance claim.
---------
Co-authored-by: Min Shen <[email protected]>
## Summary
Compile shared scalar selection/reduction once and execute repeated
anchor chunks without rebuilding DGTTPlan. Filtered PQL scalars now use
the common prepared row backend. Reuse the existing rotating TT writer
for task datasets, preserving seconds timestamps through Parquet logical
types.
Dependency order: #279 → #280 → #281 → #282 → #283 → #310.
## Validation
Latest reducer revision: 383 native aggregation/clock/order tests, 431
Rust TT unit/integration tests and 33 core accumulator tests passed;
strict affected Clippy passed. Matched one-thread, CPU-pinned checks
over 1,048,576 events preserve all aggregation/PQL output hashes. These
bounded tests do not claim cold-cache or full-training speedups. Our
separate local aggregate-statistics/native-length-planning follow-ups
remain unpublished.
## Change map
#281 (comment)
## Review repairs — 2026-11-13
Prepare temporal history and merge declarations once at iterator
attachment, reuse resolved frames across batches, validate merge
clocks/timed components, and avoid tiny scalar worker chunks.
Review repairs: 1,993 kumo-pytorch tests passed (3 skipped, 47 notebook
deselections); 444 affected native tests passed; all train-table Rust
suites passed (514 tests, 3 ignored); strict affected Clippy and Python
Ruff passed. The final native binary also passed 39 anchor tests and all
12 aggregate-program tests after the clock negative control was
isolated. #279–#282 compile at their own PR boundaries (tree identities
checked). Existing test expectations were not weakened; new regressions
cover the repairs. No merge or live sweep. GPU benchmark results remain
separate and do not establish this revision’s speedup.
Numeric review update (2026-11-13): Keep PQL min/max output floating
even when nonfinite input selects general execution; add regressions for
nonfinite means/extrema, typed integer outputs and large sums under
explicit traversal/chronological order. Numeric review repair: 364
native integration tests, 287 Rust TT unit tests and 12 shared-numeric
tests passed; strict TT Clippy passed. Six regression cases fail on the
previous binary and pass with this repair. Existing cancellation, exact
integer, clock, cap and ordering expectations were preserved. No new
GPU/performance claim.
---------
Co-authored-by: Min Shen <[email protected]>
## Summary
Consume complete native anchor/model batches for GNN and sequence
loading. Several named neighborhoods share one anchor scheduler,
combined index reader and engine. Refit iterates native stages with
per-stage shuffle, without rebuilding cross-stage Python batches. Task
extensions use the existing base-index train_tables layout without
symlinks. Global history caps remain pushed into each component before
payload decoding.
Dependency order: #279 → #280 → #281 → #282 → #283 → #310.
## Validation
Latest reducer revision: 383 native aggregation/clock/order tests, 431
Rust TT unit/integration tests and 33 core accumulator tests passed;
strict affected Clippy passed. Matched one-thread, CPU-pinned checks
over 1,048,576 events preserve all aggregation/PQL output hashes. These
bounded tests do not claim cold-cache or full-training speedups. Our
separate local aggregate-statistics/native-length-planning follow-ups
remain unpublished.
## Change map
#282 (comment)
## Review repairs — 2026-11-13
Omit absent primary-key projections for keyless non-entity GNN tables,
retain dense node identities, and clarify shuffle/per-row Python
exceptions.
Review repairs: 1,993 kumo-pytorch tests passed (3 skipped, 47 notebook
deselections); 444 affected native tests passed; all train-table Rust
suites passed (514 tests, 3 ignored); strict affected Clippy and Python
Ruff passed. The final native binary also passed 39 anchor tests and all
12 aggregate-program tests after the clock negative control was
isolated. #279–#282 compile at their own PR boundaries (tree identities
checked). Existing test expectations were not weakened; new regressions
cover the repairs. No merge or live sweep. GPU benchmark results remain
separate and do not establish this revision’s speedup.
Numeric review update (2026-11-13): Rebased on the reviewed numeric
repairs; own behavior unchanged. Numeric review repair: 364 native
integration tests, 287 Rust TT unit tests and 12 shared-numeric tests
passed; strict TT Clippy passed. Six regression cases fail on the
previous binary and pass with this repair. Existing cancellation, exact
integer, clock, cap and ordering expectations were preserved. No new
GPU/performance claim.
---------
Co-authored-by: Min Shen <[email protected]>
Prepare declared scalar features and generated scalar targets
automatically inside `Plan.materialize()`. Computation streams bounded
anchor chunks into managed task artifacts; model iteration reads the
prepared values. Generated labels remain internal metadata, rather than
becoming caller-supplied targets during encoder fitting. The extra
public precompute orchestration was removed.
Stack: #279 → #280 → #281 → #282 → #283 → #310. Selected aggregate/label
encoder statistics and native length planning are now published
separately as #328/#329, after the merged encoder-fitting work.
Validation: the combined repaired stack passes168 focused package
regressions,109 clock/fitting/materialization checks, all three
unchanged example notebooks and strict all-target native Clippy. Four
new learned-encoder cases fail before the internal-target repair and
pass afterward; target tensor parity and genuine
supplied/generated-label conflict rejection are retained. Earlier
source-bound native/aggregation benchmark evidence is retained
separately; no new GPU speedup is claimed here.
## Change map
#283 (comment)
---------
Co-authored-by: Min Shen <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reuse ordered PQL numeric accumulators after general aggregate frame/group selection, retaining frames for multi-target/window sharing. Dispatch physical types and operations outside row loops, check each projected column once, and avoid computing unused higher moments for AVG. Preserve existing PQL behavior, exact typed sums/extrema, null/nonfinite and floating-order policies.
Arrow SUM/extrema kernels were tried but not adopted: floating cancellation and first-equal signed-zero results differ. This does not rewrite existing PQL traversal or introduce a new executor.
Dependency order: #279 → #280 → #281 → #282 → #283 → #310.
Validation
Latest reducer revision: 383 native aggregation/clock/order tests, 431 Rust TT unit/integration tests and 33 core accumulator tests passed; strict affected Clippy passed. Matched one-thread, CPU-pinned checks over 1,048,576 events preserve all aggregation/PQL output hashes. These bounded tests do not claim cold-cache or full-training speedups. Our separate local aggregate-statistics/native-length-planning follow-ups remain unpublished.
Change map
#279 (comment)
Review repairs — 2026-11-13
Propagate genuine specialization failures through TT stage execution; decline missing RowPack payloads explicitly and preserve established NULL handling.
Review repairs: 1,993 kumo-pytorch tests passed (3 skipped, 47 notebook deselections); 444 affected native tests passed; all train-table Rust suites passed (514 tests, 3 ignored); strict affected Clippy and Python Ruff passed. The final native binary also passed 39 anchor tests and all 12 aggregate-program tests after the clock negative control was isolated. #279–#282 compile at their own PR boundaries (tree identities checked). Existing test expectations were not weakened; new regressions cover the repairs. No merge or live sweep. GPU benchmark results remain separate and do not establish this revision’s speedup.
Numeric review update (2026-11-13): Integer Arrow columns now use the common projected floating numeric reducer where the frontend output contract is floating. Typed integer extrema and checked integer sums retain their existing typed path. Numeric review repair: 364 native integration tests, 287 Rust TT unit tests and 12 shared-numeric tests passed; strict TT Clippy passed. Six regression cases fail on the previous binary and pass with this repair. Existing cancellation, exact integer, clock, cap and ordering expectations were preserved. No new GPU/performance claim.