voonhous commented on code in PR #20536:
URL: https://github.com/apache/hudi/pull/20536#discussion_r4520336151


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/dataskipping/Verdict.scala:
##########
@@ -60,6 +60,10 @@ object Verdict {
     }
   }
 
+  // A balanced OR, log2(n) deep. A left-deep `reduce(Or)` is one level per IN 
value, and Spark's
+  // analysis and codegen recurse over it: a few thousand values overflow the 
stack
+  private def anyOf(verdicts: Seq[Expression]): Expression = 
buildBalancedPredicate(verdicts, Or)

Review Comment:
   Done, `anyOf` now passes `verdicts.toIndexedSeq`, so `In` and `NOT IN` are 
covered as well as `InSet`.



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

Reply via email to