Hattonuri opened a new issue, #39828:
URL: https://github.com/apache/arrow/issues/39828
### Describe the bug, including details regarding any error messages,
version, and platform.
Dataset has field1 of uint64
I have filtering expression of
`
cp::and_({
cp::greater_equal(cp::field_ref("field1"), cp::literal(1535)),
cp::less_equal(cp::field_ref("field1"), cp::literal(2046)),
})
`
Then in reader I construct guaranteed true expression with row-group
metadata min/max values and try to call SimplifyWithGuarantee. Result is
`
((cast(field1, {to_type=int64, allow_int_overflow=false,
allow_time_truncate=false, allow_time_overflow=false,
allow_decimal_truncate=false, allow_float_truncate=false,
allow_invalid_utf8=false}) >= 1535) and (cast(field1, {to_type=int64,
allow_int_overflow=false, allow_time_truncate=false, allow_time_overflow=false,
allow_decimal_truncate=false, allow_float_truncate=false,
allow_invalid_utf8=false}) <= 2046))
`
I expected to have return of "false" in that way and when i change 1535 ->
1535u, 2046 -> 2046u everything works fine
I think that this problem can also occur in many other scenarios like when
people pass filters to ScanNode
### Component(s)
C++
--
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]