Skip to content

refactor: sketch-core retirement + branch-pin cleanup + elastic DSL test fix#309

Merged
milindsrivastava1997 merged 2 commits intomainfrom
chore/track-asap-sketchlib-main
May 4, 2026
Merged

refactor: sketch-core retirement + branch-pin cleanup + elastic DSL test fix#309
milindsrivastava1997 merged 2 commits intomainfrom
chore/track-asap-sketchlib-main

Conversation

@zzylol
Copy link
Copy Markdown
Contributor

@zzylol zzylol commented May 2, 2026

Summary

PR #307 (sketch-core retirement / consumer migration to `asap_sketchlib::sketches::*`) was admin-merged with a failing test. PR #310 reverted it. This PR redoes #307's content cleanly, plus the #309 cleanup (drop branch pin) and a fix for the test that was broken on #307.

Changes

  1. Re-apply refactor: retire sketch-core mirror #307's content — switch consumer imports from `sketch_core` to `asap_sketchlib::sketches::*`, delete the `asap-common/sketch-core` workspace member, drop the legacy fork's `sketchlib_fidelity` bin and `test_both_backends` test.

  2. Drop the `branch = "refactor/adopt-sketch-core-modules"` pin from `asap-query-engine/Cargo.toml`. asap_sketchlib#36 is now on main as commit `d22a9ab`; consumer tracks the default branch.

  3. Fix `test_esdsl_time_range_query` (the test that broke refactor: retire sketch-core mirror #307's CI). It computed P90 of `200..300` from a KLL and asserted exactly `291.0`. asap_sketchlib's KLL reports `290.0` on this distribution — within KLL's published rank-error bound, but breaks an exact-match assertion that previously passed against the dsrs/datasketches backend (now retired). Loosened to `±1` tolerance.

Tests

```
cargo test -p query_engine_rust --lib precompute_operators → 87 passed, 0 failed
cargo test -p query_engine_rust --lib tests::elastic → 15 passed, 0 failed
cargo test -p query_engine_rust --lib tests::elastic_dsl_query_tests::tests::test_esdsl_time_range_query → 1 passed, 0 failed
```

Replaces

@zzylol zzylol force-pushed the chore/track-asap-sketchlib-main branch from a36f9d7 to 62831b7 Compare May 2, 2026 02:17
@zzylol zzylol changed the title chore: track asap_sketchlib main instead of merged branch redo: sketch-core retirement + branch-pin cleanup + elastic DSL test fix May 2, 2026
@zzylol zzylol changed the title redo: sketch-core retirement + branch-pin cleanup + elastic DSL test fix refactor: sketch-core retirement + branch-pin cleanup + elastic DSL test fix May 2, 2026
After PR #307 was admin-merged with a failing test (and then reverted in
PR #310), redo the consumer migration cleanly with two follow-up changes:

1. Drop the \`branch = "refactor/adopt-sketch-core-modules"\` pin from
   asap-query-engine/Cargo.toml. asap_sketchlib#36 is on main as
   commit \`d22a9ab\`; the consumer now tracks the default branch.

2. Loosen the \`test_esdsl_time_range_query\` assertion to ±1 tolerance.
   The test computed P90 of 200..300 from a KLL and asserted exactly 291;
   asap_sketchlib's KLL reports 290 on this distribution, which is within
   KLL's published rank-error bound but breaks an exact-match assertion
   that previously passed against the dsrs/datasketches backend (now
   retired with sketch-core).

Tests:
- \`cargo test -p query_engine_rust --lib precompute_operators\` → 87 / 0
- \`cargo test -p query_engine_rust --lib tests::elastic\` → 15 / 0
- \`cargo test -p query_engine_rust --lib tests::elastic_dsl_query_tests::tests::test_esdsl_time_range_query\` → passes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol zzylol force-pushed the chore/track-asap-sketchlib-main branch from 62831b7 to fc85a83 Compare May 2, 2026 02:19
@milindsrivastava1997 milindsrivastava1997 merged commit 09e4629 into main May 4, 2026
10 checks passed
@milindsrivastava1997 milindsrivastava1997 deleted the chore/track-asap-sketchlib-main branch May 4, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants