Skip to content

Commit eb4c449

Browse files
refactor(query-engine): rename range's window_mode to step_overlap_mode (#610)
Avoids colliding in name with instant's WindowType (Sliding/Tumbling, picks the store fetch call) -- unrelated concept, zero behavior change. Part of #581.
1 parent ef34f63 commit eb4c449

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • asap-query-engine/src/engines/simple_engine

asap-query-engine/src/engines/simple_engine/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,11 @@ impl SimpleEngine {
15891589
let keys_lookback_ms = context.keys_lookback_ms;
15901590
let keys_tumbling_window_ms = context.keys_tumbling_window_ms;
15911591

1592-
let window_mode = if buckets_per_step <= lookback_bucket_count {
1592+
// Named distinctly from `WindowType` (Sliding/Tumbling, picks the store
1593+
// fetch call) -- this describes step-to-step overlap in the OUTPUT
1594+
// iteration, an unrelated concept that happens to reuse the words
1595+
// "sliding"/"hopping". See #581.
1596+
let step_overlap_mode = if buckets_per_step <= lookback_bucket_count {
15931597
"sliding (slide <= size)"
15941598
} else {
15951599
"hopping (slide > size)"
@@ -1603,7 +1607,7 @@ impl SimpleEngine {
16031607
tumbling_window_ms,
16041608
buckets_per_step,
16051609
lookback_bucket_count,
1606-
window_mode
1610+
step_overlap_mode
16071611
);
16081612

16091613
// Whether the value accumulator's own get_keys() is even consulted

0 commit comments

Comments
 (0)