Skip to content

Commit 531a656

Browse files
committed
fix conflict
1 parent 4bcd514 commit 531a656

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

benchmarks/src/clickbench.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ impl RunOpt {
132132
parquet_options.binary_as_string = true;
133133
}
134134

135+
config
136+
.options_mut()
137+
.optimizer
138+
.prefer_round_robin_repartition = self.prefer_round_robin;
135139
let rt_builder = self.common.runtime_env_builder()?;
136140
let ctx = SessionContext::new_with_config_rt(config, rt_builder.build_arc()?);
137141
self.register_hits(&ctx).await?;

benchmarks/src/tpch/run.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ impl RunOpt {
126126
.config()
127127
.with_collect_statistics(!self.disable_statistics);
128128
config.options_mut().optimizer.prefer_hash_join = self.prefer_hash_join;
129+
config
130+
.options_mut()
131+
.optimizer
132+
.prefer_round_robin_repartition = self.prefer_round_robin;
129133
let rt_builder = self.common.runtime_env_builder()?;
130134
let ctx = SessionContext::new_with_config_rt(config, rt_builder.build_arc()?);
131135

datafusion/physical-plan/src/repartition/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,15 +1129,13 @@ mod tests {
11291129
use crate::{
11301130
collect,
11311131
expressions::col,
1132-
memory::MemorySourceConfig,
11331132
test::{
11341133
assert_is_pending,
11351134
exec::{
11361135
assert_strong_count_converges_to_zero, BarrierExec, BlockingExec,
11371136
ErrorExec, MockExec,
11381137
},
11391138
},
1140-
{collect, expressions::col},
11411139
};
11421140

11431141
use arrow::array::{ArrayRef, StringArray, UInt32Array};
@@ -1672,12 +1670,13 @@ mod tests {
16721670
#[cfg(test)]
16731671
mod test {
16741672
use arrow::compute::SortOptions;
1675-
use arrow::datatypes::Schema;
1673+
use arrow::datatypes::{DataType, Field, Schema};
16761674

16771675
use super::*;
16781676
use crate::test::TestMemoryExec;
16791677
use crate::union::UnionExec;
16801678

1679+
use datafusion_physical_expr::expressions::col;
16811680
use datafusion_physical_expr_common::sort_expr::{LexOrdering, PhysicalSortExpr};
16821681

16831682
/// Asserts that the plan is as expected
@@ -1767,6 +1766,10 @@ mod test {
17671766
Ok(())
17681767
}
17691768

1769+
fn test_schema() -> Arc<Schema> {
1770+
Arc::new(Schema::new(vec![Field::new("c0", DataType::UInt32, false)]))
1771+
}
1772+
17701773
fn sort_exprs(schema: &Schema) -> LexOrdering {
17711774
let options = SortOptions::default();
17721775
LexOrdering::new(vec![PhysicalSortExpr {

0 commit comments

Comments
 (0)