Anurag-S1ngh opened a new issue, #19075:
URL: https://github.com/apache/iceberg/issues/19075
### What happens
`ProjectionUtil.truncateInteger` and `truncateLong` project `<` and `>`
without accounting for the wrapped partition that `TruncateUtil.truncateInt`
and `truncateLong` produce at the type minimum.
With `truncate[1000]` on an int column, values from -2147483648 to
-2147483001 truncate to 2147483296. `LessThan("x", 0)` projects to `x_trunc <=
-1000`, which excludes 2147483296, so those rows are pruned.
### Why it matters
The writer already emits the wrapped value, so the read side misses real
data. The Python implementation has the same gap: apache/iceberg-python#4407
fixes `EqualTo` and `In` and leaves the range projection unchanged; the range
case needs the reference implementation first.
### Expected
A filter that can match a value in the wrapped partition should include that
partition in its projection.
--
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]