Allow Date + Time = DateTime#102421
Merged
nihalzp merged 10 commits intoClickHouse:masterfrom Apr 11, 2026
Merged
Conversation
Contributor
|
Workflow [PR], commit [46600b2] Summary: ✅ AI ReviewSummaryThis PR adds Findings
ClickHouse Rules
Final Verdict
|
Contributor
LLVM Coverage Report
Changed lines: 94.55% (208/220) · Uncovered code |
alexey-milovidov
approved these changes
Apr 11, 2026
Member
alexey-milovidov
left a comment
There was a problem hiding this comment.
Looks good! First I thought about time zones, but as neither Date or Time have them, the only option is to use the default (session) timezone for DateTime.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
DateandDate32values can now be added toTimeandTime64values using the+operator, producing aDateTimeorDateTime64result. For example,SELECT toDate('2024-01-15') + toTime('14:30:25')returns2024-01-15 14:30:25. The result is computed in the session timezone, and out-of-range results are handled according to thedate_time_overflow_behaviorsetting. Closes #95914.Documentation entry for user-facing changes