File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
datafusion/physical-plan/src/topk Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ impl TopK {
357
357
let mut threshold_guard = self . filter . threshold_row . write ( ) ;
358
358
if let Some ( current_row) = threshold_guard. as_ref ( ) {
359
359
match current_row. as_slice ( ) . cmp ( new_threshold_row) {
360
- Ordering :: Less => {
361
- // new > current, so new threshold is more selective
360
+ Ordering :: Greater => {
361
+ // new < current, so new threshold is more selective
362
362
// Update threshold and filter atomically to prevent race conditions
363
363
* threshold_guard = Some ( new_threshold_row. to_vec ( ) ) ;
364
364
@@ -376,7 +376,7 @@ impl TopK {
376
376
thresholds,
377
377
) ?;
378
378
}
379
- Ordering :: Equal | Ordering :: Greater => {
379
+ _ => {
380
380
// Same threshold or current is more selective, no need to update
381
381
}
382
382
}
You can’t perform that action at this time.
0 commit comments