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

[BUG] DATE and TIME function may result in different times/date in one query #1157

Open
MitchellGale opened this issue Dec 12, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@MitchellGale
Copy link
Contributor

What is the bug?
Date/time run in one query may result in different results within the date and time functions in datetime.

How can one reproduce the bug?
run SELECT DATE(TIME("10:32:30")), DATE(TIME("10:32:30")) on border of day and observe that dates can differ.

What is the expected behavior?
One query should result in one uniform date/time used as a result from all. The exam same date/time should be used for all values.

Do you have any additional context?
Fix may involve #1047.

@MitchellGale MitchellGale added bug Something isn't working untriaged labels Dec 12, 2022
@dai-chen
Copy link
Collaborator

wondering is this fixed in #1047 finally?

@Yury-Fridlyand
Copy link
Collaborator

DATE function is not updated yet. If you call SELECT DATE(TIME("10:32:30")), DATE(TIME("10:32:30")) on the very edge of two days, you get different results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants