You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For predicates with properties of type DATE, use date in literals, not timestamps. Currently the type of a property is not known when visiting/processing a CQL2 expression, so for an instant it could be either a date or timestamp. Currently the default assumption is timestamps, which can lead to unexpected results (the date is cast to the first timestamp of the day in UTC).
Describe the Use Case
Avoid casts for dates to instants.
Describe Preferred Solution
This would require that type information of queryables is available when processing CQL2 expressions.
Describe the Feature Request
For predicates with properties of type DATE, use date in literals, not timestamps. Currently the type of a property is not known when visiting/processing a CQL2 expression, so for an instant it could be either a date or timestamp. Currently the default assumption is timestamps, which can lead to unexpected results (the date is cast to the first timestamp of the day in UTC).
Describe the Use Case
Avoid casts for dates to instants.
Describe Preferred Solution
This would require that type information of queryables is available when processing CQL2 expressions.
Additional Information
Source: #599
The text was updated successfully, but these errors were encountered: