Skip to content

Commit 2eaf03c

Browse files
committed
Merge branch 'impl/sds-stack-761' into impl/sds-stack-728
2 parents f134c4e + db04a7f commit 2eaf03c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
//! Storage uses the Planner-owned state implementation.
22
pub use asap_physical_operators::stored_state::delta_apply::*;
3+
4+
#[cfg(test)]
5+
mod tests {
6+
use super::*;
7+
use asap_physical_operators::stored_state::{SketchEncoding, SketchSampleState};
8+
9+
#[test]
10+
fn native_batches_are_not_legacy_sketch_frames() {
11+
let state = SketchSampleState {
12+
bytes: vec![],
13+
encoding: SketchEncoding::NativeBatchV1,
14+
};
15+
let samples = [(1000, &state)];
16+
assert!(cumulative_summary_state(&samples, DeltaSketchKind::Kll { k: 200 }).is_err());
17+
assert!(per_window_summary_states(&samples, DeltaSketchKind::Kll { k: 200 }).is_err());
18+
}
19+
}

0 commit comments

Comments
 (0)