ForVic commented on code in PR #59486:
URL: https://github.com/apache/spark/pull/59486#discussion_r4356098553


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetStorageFilter.scala:
##########
@@ -216,6 +225,17 @@ object ParquetStorageFilter {
     case _ => false
   }
 
+  /**
+   * Whether the reader can evaluate `expr`, a conjunct over the key columns 
of the accepted
+   * storage filters, together with them: no subquery, and nothing unevaluable 
but column
+   * references.
+   */
+  def isSupportedFilterOnKeys(expr: Expression): Boolean =
+    !expr.containsPattern(PLAN_EXPRESSION) && !expr.exists {

Review Comment:
   Makes sense, thanks. I'd like to keep this PR focused, so I'll do it as a 
follow-up and file a JIRA for it. 
(https://issues.apache.org/jira/browse/SPARK-60500)



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

To unsubscribe, e-mail: [email protected]

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