File tree Expand file tree Collapse file tree
datafusion/core/tests/parquet Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments