rdblue commented on a change in pull request #1981: URL: https://github.com/apache/iceberg/pull/1981#discussion_r549826545
########## File path: api/src/main/java/org/apache/iceberg/transforms/ProjectionUtil.java ########## @@ -254,4 +257,124 @@ private ProjectionUtil() { return predicate(predicate.op(), fieldName, Iterables.transform(predicate.asSetPredicate().literalSet(), transform::apply)); } + + static UnboundPredicate<Integer> fixInclusiveTimeProjection(UnboundPredicate<Integer> projected) { + if (projected == null) { + return projected; + } + + // adjust the predicate for values that were 1 larger than the correct transformed value Review comment: I added docs to explain what "correct" and "incorrect" mean. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org