Skip to content

Commit d2529ce

Browse files
committed
Remove rule from default optimizer
1 parent 5b749c4 commit d2529ce

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

datafusion/core/src/physical_optimizer/optimizer.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use crate::physical_optimizer::limited_distinct_aggregation::LimitedDistinctAggr
3030
use crate::physical_optimizer::output_requirements::OutputRequirements;
3131
use crate::physical_optimizer::sanity_checker::SanityCheckPlan;
3232
use crate::physical_optimizer::topk_aggregation::TopKAggregation;
33-
use datafusion_physical_optimizer::eliminate_common_physical_subexprs::EliminateCommonPhysicalSubexprs;
3433
use datafusion_physical_optimizer::PhysicalOptimizerRule;
3534
use std::sync::Arc;
3635

@@ -103,10 +102,6 @@ impl PhysicalOptimizer {
103102
// replacing operators with fetching variants, or adding limits
104103
// past operators that support limit pushdown.
105104
Arc::new(LimitPushdown::new()),
106-
// The EliminateCommonPhysicalSubExprs rule extracts common physical
107-
// subexpression trees into a `ProjectionExec` node under the actual node to
108-
// calculate the common values only once.
109-
Arc::new(EliminateCommonPhysicalSubexprs::new()),
110105
// The SanityCheckPlan rule checks whether the order and
111106
// distribution requirements of each node in the plan
112107
// is satisfied. It will also reject non-runnable query

datafusion/sqllogictest/test_files/explain.slt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ physical_plan after OutputRequirements CsvExec: file_groups={1 group: [[WORKSPAC
254254
physical_plan after LimitAggregation SAME TEXT AS ABOVE
255255
physical_plan after ProjectionPushdown SAME TEXT AS ABOVE
256256
physical_plan after LimitPushdown SAME TEXT AS ABOVE
257-
physical_plan after eliminate_common_physical_subexpressions SAME TEXT AS ABOVE
258257
physical_plan after SanityCheckPlan SAME TEXT AS ABOVE
259258
physical_plan CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/core/tests/data/example.csv]]}, projection=[a, b, c], has_header=true
260259
physical_plan_with_stats CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/core/tests/data/example.csv]]}, projection=[a, b, c], has_header=true, statistics=[Rows=Absent, Bytes=Absent, [(Col[0]:),(Col[1]:),(Col[2]:)]]
@@ -331,7 +330,6 @@ physical_plan after OutputRequirements
331330
physical_plan after LimitAggregation SAME TEXT AS ABOVE
332331
physical_plan after ProjectionPushdown SAME TEXT AS ABOVE
333332
physical_plan after LimitPushdown ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10, statistics=[Rows=Exact(8), Bytes=Absent, [(Col[0]:),(Col[1]:),(Col[2]:),(Col[3]:),(Col[4]:),(Col[5]:),(Col[6]:),(Col[7]:),(Col[8]:),(Col[9]:),(Col[10]:)]]
334-
physical_plan after eliminate_common_physical_subexpressions SAME TEXT AS ABOVE
335333
physical_plan after SanityCheckPlan SAME TEXT AS ABOVE
336334
physical_plan ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10, statistics=[Rows=Exact(8), Bytes=Absent, [(Col[0]:),(Col[1]:),(Col[2]:),(Col[3]:),(Col[4]:),(Col[5]:),(Col[6]:),(Col[7]:),(Col[8]:),(Col[9]:),(Col[10]:)]]
337335
physical_plan_with_schema ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10, schema=[id:Int32;N, bool_col:Boolean;N, tinyint_col:Int32;N, smallint_col:Int32;N, int_col:Int32;N, bigint_col:Int64;N, float_col:Float32;N, double_col:Float64;N, date_string_col:Binary;N, string_col:Binary;N, timestamp_col:Timestamp(Nanosecond, None);N]
@@ -372,7 +370,6 @@ physical_plan after OutputRequirements
372370
physical_plan after LimitAggregation SAME TEXT AS ABOVE
373371
physical_plan after ProjectionPushdown SAME TEXT AS ABOVE
374372
physical_plan after LimitPushdown ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10
375-
physical_plan after eliminate_common_physical_subexpressions SAME TEXT AS ABOVE
376373
physical_plan after SanityCheckPlan SAME TEXT AS ABOVE
377374
physical_plan ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10
378375
physical_plan_with_stats ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col], limit=10, statistics=[Rows=Exact(8), Bytes=Absent, [(Col[0]:),(Col[1]:),(Col[2]:),(Col[3]:),(Col[4]:),(Col[5]:),(Col[6]:),(Col[7]:),(Col[8]:),(Col[9]:),(Col[10]:)]]

0 commit comments

Comments
 (0)