Anurag-S1ngh commented on issue #18111:
URL: https://github.com/apache/iceberg/issues/18111#issuecomment-7283085298

   Additional reproduction for the same overflow, from the projection side 
rather than the writer:
   
   - width `1073741825`, value `1073741823` truncates to `2147483646` instead 
of `0`
   - width `Integer.MAX_VALUE`, value `2` truncates to `2` instead of `0`
   
   The second case means a strict `LT_EQ` projection can match a partition that 
contains no matching row. With `truncate[1073741825]`, value `2147483646` and 
predicate `value <= 1073741822`, the strict projection tests `x_trunc < 
truncate(1073741823)` and the wrong bound makes it true for partition 
`1073741825`.
   
   Same root cause and same line as this issue, so PR #18112 covers it.
   


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

Reply via email to