-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Comparing a Timestamp to a Date32 fails.
To Reproduce
Add the following test to timestamps.slt:
# Test that we can compare a timestamp to a string casted to a date
query C rowsort
select * from foo where ts > '2000-01-01'::date;
----
2 2000-02-01T00:00:00
3 2000-03-01T00:00:00
This fails w/:
[timestamps.slt] Running query: "select * from foo where ts > '2000-01-01'::date;"
Error: SqlLogicTest(query failed: DataFusion error: Internal error: The type of Timestamp(Nanosecond, None) > Date32 of binary physical should be same. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
Expected behavior
It works.
Additional context
Tested on 5c558e9 .
This is likely due to a like in temporal_coercion as well as this workaround:
Also see #3419.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working