pepijnve commented on code in PR #18144:
URL: https://github.com/apache/datafusion/pull/18144#discussion_r2442308563
##########
datafusion/physical-expr/benches/case_when.rs:
##########
@@ -193,7 +189,7 @@ fn run_benchmarks(c: &mut Criterion, batch: &RecordBatch) {
// Many when/then branches where all but the first few are effectively
unreachable
c.bench_function(format!("case_when {}x{}: CASE WHEN c1 < 0 THEN 0 WHEN c1
< 1000 THEN 1 ... WHEN c1 < n * 1000 THEN n ELSE n + 1 END", batch.num_rows(),
batch.num_columns()).as_str(), |b| {
- let when_thens = (0..batch.num_rows() as i32).map(|i|
(make_x_cmp_y(&c1, Operator::Eq, i * 1000), lit(i))).collect();
+ let when_thens = (0..batch.num_rows() as i32).map(|i|
(make_x_cmp_y(&c1, Operator::Lt, i * 1000), lit(i))).collect();
Review Comment:
That's perfectly understandable. With the sheer number of PRs you're
reviewing it's easy to miss something small like this.
I was focusing (or trying to at least) on this a missed the copy/paste
mistake myself as author. Clearly trying to do too many things at the same time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]