Skip to content

Commit 088add0

Browse files
committed
chore: fix
1 parent 8d8d828 commit 088add0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rust/cubesql/cubesql/src/compile/engine/df/optimizers/plan_normalize.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ fn binary_expr_cast_literal(op: &Operator, other_type: &DataType) -> Option<Data
11081108
| Operator::RegexIMatch
11091109
| Operator::RegexNotMatch
11101110
| Operator::RegexNotIMatch => None,
1111-
// Bitwise oprators should cast strings to the other side type
1111+
// Bitwise operators should cast strings to the other side type
11121112
Operator::BitwiseAnd
11131113
| Operator::BitwiseOr
11141114
| Operator::BitwiseShiftRight
@@ -1225,7 +1225,7 @@ mod tests {
12251225
.expect("Failed to build plan");
12261226

12271227
// Create a deeply nested OR expression (should cause stack overflow)
1228-
let deeply_nested_filter = create_deeply_nested_or_expr("value", 128);
1228+
let deeply_nested_filter = create_deeply_nested_or_expr("value", 100);
12291229

12301230
// Build the plan with the filter
12311231
let plan = LogicalPlanBuilder::from(table_scan)
@@ -1234,8 +1234,6 @@ mod tests {
12341234
.build()
12351235
.expect("Failed to build plan");
12361236

1237-
// panic!("{:?}", plan);
1238-
12391237
let optimizer = PlanNormalize::new(&cube_ctx);
12401238
optimizer.optimize(&plan, &OptimizerConfig::new())?;
12411239

0 commit comments

Comments
 (0)