Skip to content

Commit d80df16

Browse files
GordonYuanycclaude
andcommitted
refactor: update sketchlib import paths for top-k module renames
Tracks the module renames in asap_sketchlib PR #39: - sketches::countmin -> sketches::countminsketch - sketches::cms_heap -> sketches::countminsketch_topk Type names (CountMinSketch, CountMinSketchWithHeap, CmsHeapItem) are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d7e0dde commit d80df16

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

asap-query-engine/src/precompute_operators/count_min_sketch_accumulator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::data_model::{
22
AggregateCore, AggregationType, KeyByLabelValues, MergeableAccumulator,
33
MultipleSubpopulationAggregate, SerializableToSink,
44
};
5-
use asap_sketchlib::sketches::countmin::CountMinSketch;
5+
use asap_sketchlib::sketches::countminsketch::CountMinSketch;
66
use serde_json::Value;
77
use std::collections::HashMap;
88

asap-query-engine/src/precompute_operators/count_min_sketch_with_heap_accumulator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ use crate::data_model::{
22
AggregateCore, AggregationType, KeyByLabelValues, MergeableAccumulator,
33
MultipleSubpopulationAggregate, SerializableToSink,
44
};
5-
use asap_sketchlib::sketches::cms_heap::{CmsHeapItem, CountMinSketchWithHeap};
5+
use asap_sketchlib::sketches::countminsketch_topk::{CmsHeapItem, CountMinSketchWithHeap};
66
use serde_json::Value;
77
use std::collections::HashMap;
88

99
use promql_utilities::query_logics::enums::Statistic;
1010

1111
/// Count-Min Sketch with Heap accumulator — wraps `asap_sketchlib::sketches::CountMinSketchWithHeap`.
12-
/// Core struct, update/merge/serde logic live in `asap_sketchlib::sketches::cms_heap`.
12+
/// Core struct, update/merge/serde logic live in `asap_sketchlib::sketches::countminsketch_topk`.
1313
/// This file retains QE-specific trait impls, legacy deserializers, and JSON output.
1414
#[derive(Debug, Clone)]
1515
pub struct CountMinSketchWithHeapAccumulator {
1616
pub inner: CountMinSketchWithHeap,
1717
}
1818

1919
// Re-export HeapItem so existing code using CountMinSketchWithHeapAccumulator::HeapItem still works.
20-
pub use asap_sketchlib::sketches::cms_heap::CmsHeapItem as HeapItemReexport;
20+
pub use asap_sketchlib::sketches::countminsketch_topk::CmsHeapItem as HeapItemReexport;
2121

2222
impl CountMinSketchWithHeapAccumulator {
2323
pub fn new(row_num: usize, col_num: usize, heap_size: usize) -> Self {

0 commit comments

Comments
 (0)