maropu commented on a change in pull request #29092:
URL: https://github.com/apache/spark/pull/29092#discussion_r503590648
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
##########
@@ -117,14 +116,13 @@ abstract class Optimizer(catalogManager: CatalogManager)
extendedOperatorOptimizationRules
val operatorOptimizationBatch: Seq[Batch] = {
- val rulesWithoutInferFiltersFromConstraints =
- operatorOptimizationRuleSet.filterNot(_ == InferFiltersFromConstraints)
Batch("Operator Optimization before Inferring Filters", fixedPoint,
- rulesWithoutInferFiltersFromConstraints: _*) ::
+ operatorOptimizationRuleSet: _*) ::
Batch("Infer Filters", Once,
+ InferFiltersFromGenerate,
InferFiltersFromConstraints) ::
Batch("Operator Optimization after Inferring Filters", fixedPoint,
- rulesWithoutInferFiltersFromConstraints: _*) ::
+ operatorOptimizationRuleSet: _*) ::
Review comment:
nit: `operatorOptimizationRuleSet` -> `rulesWithoutInferFilters`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]