Skip to content

Commit

Permalink
Apply InferFiltersFromConstraints after SemiJoins are materialized in…
Browse files Browse the repository at this point in the history
… the logical plan via RewritePredicateSubquery
  • Loading branch information
abellina committed May 6, 2022
1 parent 4f25b3f commit 8aaeb89
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -243,6 +243,9 @@ abstract class Optimizer(catalogManager: CatalogManager)
ColumnPruning,
CollapseProject,
RemoveNoopOperators) :+
Batch("Infer Filters Again", Once,
InferFiltersFromGenerate,
InferFiltersFromConstraints) :+
// This batch must be executed after the `RewriteSubquery` batch, which creates joins.
Batch("NormalizeFloatingNumbers", Once, NormalizeFloatingNumbers) :+
Batch("ReplaceUpdateFieldsExpression", Once, ReplaceUpdateFieldsExpression)
Expand Down

0 comments on commit 8aaeb89

Please sign in to comment.