Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CQL2: Improve date handling #691

Open
cportele opened this issue Jul 1, 2022 · 0 comments
Open

CQL2: Improve date handling #691

cportele opened this issue Jul 1, 2022 · 0 comments

Comments

@cportele
Copy link
Member

cportele commented Jul 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant