Weird equality comparison when TIMESTAMP_NS
stored in tables, subqueries and CTEs is casted to DATE
#11377
Closed
1 task done
Labels
What happens?
DATE
values converted fromTIMESTAMP_NS
stored in tables, subqueries, and CTEs are different fromDATE
literal even though the values look the same.TIMESTAMP_NS
values are literal instantiated in the clause.TIMESTAMP_NS
and comparing date values of timestamps stored in tables is natural. I found this case when filtering a dataset with a date.returns
To Reproduce
Use the SQL above
OS:
Linux x86
DuckDB Version:
v0.10.1
DuckDB Client:
Python
Full Name:
Masahiro Matsui
Affiliation:
Treasure Data
Have you tried this on the latest nightly build?
I have tested with a release build (and could not test with a nightly build)
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: