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
[Refactor] DataFusion engine E2: move sketch kernels into a shared crate #1506
ASAPQuery's ingest engine must build KLL/HLL/CMS states that the new query engine reads with no conversion (D5), and deleting crates/executor (S8) must not delete the kernels. Today they live in crates/executor/src/summary_kernels/ (datasketches_kll.rs, hll_sketch.rs, count_min_sketch.rs, hydra_*, univmon.rs, kmv.rs, dd_sketch.rs, weighted_frequency.rs, exact.rs, increase.rs, factory/, state_column_updater/).
Concrete maintenance problem
Three users need one implementation: the executor (until S8), ASAPQuery's ingest engine (engine-boundaries step 8, decision 48), and the new engine (E5a). crates/cost also uses UnivMonAccumulator, WeightedFrequency, StateColumnUpdater and supported_summary_families.
Behavior that must remain unchanged
Every kernel's build, merge, estimate and serialization output, bit for bit. All existing executor, cost and integration tests pass unchanged.
Before and after structure
Before: kernels inside asap-executor. After: a new crate (e.g. crates/sketch-kernels, package asap-sketch-kernels) holding the kernels behind one Sketch trait (merge_with returns a new object, D5), the family factory and supported_summary_families. asap-executor and asap-cost depend on it; the executor keeps thin re-exports only where that avoids churn. No dependency on DataFusion or on the executor's runtime.
Why the proposed structure is minimally complex
A move plus one trait that names what the executor's AggregateCore already does. No new behavior.
Existing unit and end-to-end protection
Executor kernel unit tests (moved with the code), crates/cost tests, crates/integration-tests, planner corpus snapshots (must not change).
Compatibility or migration impact
ASAPQuery pins ASAPPlanner by commit (engine-boundaries step 5) and adapts its WindowedBuild/AccumulatorUpdater (ProjectASAP/ASAPQuery#940) to this crate in step 8. Authoritative design: D5, engine-boundaries decision 48.
Activity
test(executor): golden values for every summary kernel before the move (