Skip to content

Commit 8ca699f

Browse files
committed
update rule
Signed-off-by: Ruihang Xia <[email protected]>
1 parent 79d82bc commit 8ca699f

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

datafusion/core/tests/execution/coop.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ async fn interleave_then_filter_all_yields(
429429
let mut infinite_children = vec![];
430430

431431
// Use 32 distinct thresholds (each >0 and <8 192) to force 32 infinite inputs
432-
for thr in 1..32 {
432+
for threshold in 1..32 {
433433
// One infinite exec:
434434
let mut inf = make_lazy_exec_with_range("value", 0..i64::MAX, pretend_infinite);
435435

@@ -439,7 +439,7 @@ async fn interleave_then_filter_all_yields(
439439
let partitioning = Partitioning::Hash(exprs, 1);
440440
inf.try_set_partitioning(partitioning)?;
441441

442-
// Apply a FilterExec: “(value / 8192) % thr == 0”.
442+
// Apply a FilterExec: “(value / 8192) % threshold == 0”.
443443
let filter_expr = binary(
444444
binary(
445445
binary(
@@ -449,7 +449,7 @@ async fn interleave_then_filter_all_yields(
449449
&inf.schema(),
450450
)?,
451451
Modulo,
452-
lit(thr as i64),
452+
lit(threshold as i64),
453453
&inf.schema(),
454454
)?,
455455
Eq,
@@ -485,7 +485,7 @@ async fn interleave_then_aggregate_yields(
485485
let mut infinite_children = vec![];
486486

487487
// Use 32 distinct thresholds (each >0 and <8 192) to force 32 infinite inputs
488-
for thr in 1..32 {
488+
for threshold in 1..32 {
489489
// One infinite exec:
490490
let mut inf = make_lazy_exec_with_range("value", 0..i64::MAX, pretend_infinite);
491491

@@ -495,7 +495,7 @@ async fn interleave_then_aggregate_yields(
495495
let partitioning = Partitioning::Hash(exprs, 1);
496496
inf.try_set_partitioning(partitioning)?;
497497

498-
// Apply a FilterExec: “(value / 8192) % thr == 0”.
498+
// Apply a FilterExec: “(value / 8192) % threshold == 0”.
499499
let filter_expr = binary(
500500
binary(
501501
binary(
@@ -505,7 +505,7 @@ async fn interleave_then_aggregate_yields(
505505
&inf.schema(),
506506
)?,
507507
Modulo,
508-
lit(thr as i64),
508+
lit(threshold as i64),
509509
&inf.schema(),
510510
)?,
511511
Eq,

typos.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ flate = "flate"
55
nd = "nd"
66
Nd = "Nd"
77
YOUY = "YOUY"
8+
typ = "typ"
9+
ba = "ba"
10+
lits = "lits"
11+
ECT = "ECT"
12+
Ue = "Ue"
13+
Iy = "Iy"
14+
hte = "hte"
815

916

1017
[files]

0 commit comments

Comments
 (0)