Skip to content

Commit

Permalink
Fix Once strategy's idempotence is broken for batch Infer Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyum committed Jul 27, 2020
1 parent f001b27 commit bcc81be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ abstract class Optimizer(catalogManager: CatalogManager)
override protected val excludedOnceBatches: Set[String] =
Set(
"PartitionPruning",
"Infer Filters from PartitionPruning",
"Extract Python UDFs")

protected def fixedPoint =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SparkOptimizer(
OptimizeSubqueries) :+
Batch("Pushdown Filters from PartitionPruning", fixedPoint,
PushDownPredicates) :+
Batch("Infer Filters from DynamicPruning", Once,
Batch("Infer Filters from PartitionPruning", Once,
InferFiltersFromConstraints) :+
Batch("Cleanup filters that cannot be pushed down", Once,
CleanupDynamicPruningFilters,
Expand Down

0 comments on commit bcc81be

Please sign in to comment.