try_cast_literal_to_type
doesn't respect timestamp precision
#5507
Labels
bug
Something isn't working
try_cast_literal_to_type
doesn't respect timestamp precision
#5507
Describe the bug
In the function
try_cast_literal_to_type
: https://github.com/apache/arrow-datafusion/blob/928662bb12d915aef83abba1312392d25770f68f/datafusion/optimizer/src/unwrap_cast_in_comparison.rs#L295Converting from
Timestamp(Nanosecond, _)
toTimestamp(Microsecond, _)
doesn't actually return the correct value. It simply interchanges the inner integer.To Reproduce
Running the following:
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: