rdblue commented on a change in pull request #2062: URL: https://github.com/apache/iceberg/pull/2062#discussion_r567161493
########## File path: api/src/main/java/org/apache/iceberg/expressions/InclusiveMetricsEvaluator.java ########## @@ -372,6 +372,38 @@ public Boolean or(Boolean leftResult, Boolean rightResult) { return ROWS_MIGHT_MATCH; } + @Override + public <T> Boolean notStartsWith(BoundReference<T> ref, Literal<T> lit) { + Integer id = ref.fieldId(); + + if (containsNullsOnly(id)) { + return ROWS_CANNOT_MATCH; + } + + ByteBuffer prefixAsBytes = lit.toByteBuffer(); + + Comparator<ByteBuffer> comparator = Comparators.unsignedBytes(); + + if (lowerBounds != null && upperBounds != null && + lowerBounds.containsKey(id) && upperBounds.containsKey(id)) { Review comment: Nit: indentation should be 2 indents / 4 spaces from the start of `if`. ---------------------------------------------------------------- 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