maropu commented on a change in pull request #29075:
URL: https://github.com/apache/spark/pull/29075#discussion_r453388615



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/PruneHiveTablePartitions.scala
##########
@@ -103,7 +110,7 @@ private[sql] class PruneHiveTablePartitions(session: 
SparkSession)
   override def apply(plan: LogicalPlan): LogicalPlan = plan resolveOperators {
     case op @ PhysicalOperation(projections, filters, relation: 
HiveTableRelation)
       if filters.nonEmpty && relation.isPartitioned && 
relation.prunedPartitions.isEmpty =>
-      val predicates = 
CNFWithGroupExpressionsByReference(filters.reduceLeft(And))
+      val predicates = CNFConversion(filters.reduceLeft(And))

Review comment:
       nit: `conjunctiveNormalForm(filters.reduceLeft(And), identity)`?




----------------------------------------------------------------
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]

Reply via email to