Skip to content

Handle comparaison of dates in the "WHERE" clause #208

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

Open
vserret opened this issue Dec 4, 2023 · 0 comments
Open

Handle comparaison of dates in the "WHERE" clause #208

vserret opened this issue Dec 4, 2023 · 0 comments
Assignees

Comments

@vserret
Copy link
Contributor

vserret commented Dec 4, 2023

If we do:
SELECT * FROM retail_transactions t WHERE t.transaction_timestamp > '2023-01-01'

the WHERE condition is not considered because '2023-01-01' is seen as a string.

And if we do:
SELECT * FROM retail_transactions t WHERE t.transaction_timestamp > CAST('2023-01-01' AS date)
This does not work because value is not implemented for cast_as_date

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

No branches or pull requests

2 participants