yyanyy commented on issue #2492:
URL: https://github.com/apache/iceberg/issues/2492#issuecomment-822827789
Sorry let me make it more clear: I think it could happen if people have
their custom implementation for summary info, and I'm not sure if it would be a
bug on their side if they assign the lower bound in some way similar to the
following:
```
if (isGreaterThanBound(max, val)) {
max = val;
}
if (!isGreaterThanBound(min, val)) { <--
min = val;
}
...
private boolean isGreaterThanBound(int bound, int val) {
return val > bound;
}
```
I guess the code seems unnatural, but an additional check on lower bound may
not be that expensive to account for this?
--
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]