Skip to content

Commit 3d37428

Browse files
committed
fix
1 parent 9d5702d commit 3d37428

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

datafusion/core/tests/parquet/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ impl ContextWithParquet {
196196
unit: Unit,
197197
mut config: SessionConfig,
198198
) -> Self {
199+
// Use a single partition for deterministic results no matter how many CPUs the host has
200+
config = config.with_target_partitions(1);
199201
let file = match unit {
200202
Unit::RowGroup(row_per_group) => {
201203
config = config.with_parquet_bloom_filter_pruning(true);

datafusion/core/tests/parquet/row_group_pruning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ macro_rules! int_tests {
448448
.with_expected_errors(Some(0))
449449
.with_matched_by_stats(Some(0))
450450
.with_pruned_by_stats(Some(0))
451-
.with_pruned_files(Some(3))
451+
.with_pruned_files(Some(1))
452452
.with_matched_by_bloom_filter(Some(0))
453453
.with_pruned_by_bloom_filter(Some(0))
454454
.with_expected_rows(0)
@@ -1400,7 +1400,7 @@ async fn test_row_group_with_null_values() {
14001400
.with_expected_errors(Some(0))
14011401
.with_matched_by_stats(Some(0))
14021402
.with_pruned_by_stats(Some(0))
1403-
.with_pruned_files(Some(3))
1403+
.with_pruned_files(Some(1))
14041404
.with_expected_rows(0)
14051405
.with_matched_by_bloom_filter(Some(0))
14061406
.with_pruned_by_bloom_filter(Some(0))

0 commit comments

Comments
 (0)