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

Fixed comparison of DateTime64 with different scales #16952

Merged
merged 10 commits into from Dec 8, 2020

Conversation

Enmk
Copy link
Contributor

@Enmk Enmk commented Nov 12, 2020

Made DateTime64 a stand-alone type rather than typedef to allow function resolution/deduction based on type.
Added tests.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix incorrect comparison of types DateTime64 with different scales. Fixes #16655
...

closes: #16655

Made DateTime64 a stand-alone type rather than typedef to allow function resolution/deduction based on type.
Added tests.
@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Nov 12, 2020
@alexey-milovidov alexey-milovidov changed the title Fixed comparison of DateTime4 with different scales Fixed comparison of DateTime64 with different scales Nov 14, 2020
Enmk and others added 5 commits November 15, 2020 22:11
Also updated other places, like type helpers/dispatchers where DateTime64
was implicitly supported before as Decimal64.
Added std::hash overload
Fixed the way aggregate functions work with DateTime64
Added an option for an aggregate function to opt out from DateTime64 support
Disable support of DateTime64 for AggregateFunctionSun, since it makes very little sense.
@KochetovNicolai KochetovNicolai self-assigned this Nov 27, 2020
Copy link
Member

@KochetovNicolai KochetovNicolai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KochetovNicolai
Copy link
Member

01415_sticking_mutations is flappy
yandex check is broken on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
5 participants