Skip to content

Commit 809c85b

Browse files
committed
Replace ColumnKnowledge with EquivalencePropagation
1 parent a3202cb commit 809c85b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/transform/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,6 @@ impl Optimizer {
589589
// Predicate pushdown sets the equivalence classes of joins.
590590
Box::new(predicate_pushdown::PredicatePushdown::default()),
591591
Box::new(equivalence_propagation::EquivalencePropagation::default()),
592-
// Lifts the information `col = literal`
593-
// TODO (database-issues#2062): this also tries to lift `!isnull(col)` but
594-
// less well than the previous transform. Eliminate
595-
// redundancy between the two transforms.
596-
Box::new(column_knowledge::ColumnKnowledge::default()),
597592
// Lifts the information `col1 = col2`
598593
Box::new(demand::Demand::default()),
599594
Box::new(FuseAndCollapse::default()),
@@ -676,7 +671,7 @@ impl Optimizer {
676671
name: "fixpoint_physical_01",
677672
limit: 100,
678673
transforms: vec![
679-
Box::new(column_knowledge::ColumnKnowledge::default()),
674+
Box::new(equivalence_propagation::EquivalencePropagation::default()),
680675
Box::new(fold_constants::FoldConstants {
681676
limit: Some(FOLD_CONSTANTS_LIMIT),
682677
}),

0 commit comments

Comments
 (0)