Skip to content

Commit c05846f

Browse files
Factor TopK filter test helper
1 parent 96ba61c commit c05846f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • datafusion/physical-plan/src/topk

‎datafusion/physical-plan/src/topk/mod.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,10 +1219,9 @@ mod tests {
12191219
]))
12201220
}
12211221

1222+
// Local TopK tests use one emitter; shared-filter cases pass the partition count explicitly.
12221223
fn make_topk_filter() -> Arc<RwLock<TopKDynamicFilters>> {
1223-
Arc::new(RwLock::new(TopKDynamicFilters::new(Arc::new(
1224-
DynamicFilterPhysicalExpr::new(vec![], lit(true)),
1225-
))))
1224+
make_shared_topk_filter(1)
12261225
}
12271226

12281227
fn make_shared_topk_filter(

0 commit comments

Comments
 (0)