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

TimeZone is ignored in function if with Date and DateTime #24128

Closed
qoega opened this issue May 14, 2021 · 0 comments · Fixed by #24129
Closed

TimeZone is ignored in function if with Date and DateTime #24128

qoega opened this issue May 14, 2021 · 0 comments · Fixed by #24129
Assignees
Labels
bug Confirmed user-visible misbehaviour in official release comp-datetime date & time & timezone related

Comments

@qoega
Copy link
Member

qoega commented May 14, 2021

qoega-dev.sas.yp-c.yandex.net :) SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01', 'Europe/Moscow');

SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01', 'Europe/Moscow')

Query id: baf63ad5-1893-401c-9728-63bd5c295df1

┌─less(toDate('2000-01-01'), toDateTime('2000-01-01 00:00:01', 'Europe/Moscow'))─┐
│                                                                              0 │
└────────────────────────────────────────────────────────────────────────────────┘

1 rows in set. Elapsed: 0.011 sec.

qoega-dev.sas.yp-c.yandex.net :) SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01');

SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01')

Query id: c2136446-a3a0-4567-a94e-68f40dc1f158

┌─less(toDate('2000-01-01'), toDateTime('2000-01-01 00:00:01'))─┐
│                                                             1 │
└───────────────────────────────────────────────────────────────┘

1 rows in set. Elapsed: 0.011 sec.
@qoega qoega added the bug Confirmed user-visible misbehaviour in official release label May 14, 2021
@qoega qoega added the comp-datetime date & time & timezone related label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release comp-datetime date & time & timezone related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants