Add utc_tz_aware="schema" mode for schema-matching datetime output#653
Merged
joe-clickhouse merged 4 commits intomainfrom Feb 19, 2026
Conversation
mitchhollander
left a comment
There was a problem hiding this comment.
Commented with a take it or leave it suggestion.
Contributor
Author
|
Just to follow up here, I've pushed a commit to make these changes. You can see them on the branch itself, but for some reason GitHub hasn't propagated to here yet. I'll let this sit for a bit and see if it eventually resolves. EDIT: pushed empty commit to trigger PR sync and it worked. |
mitchhollander
approved these changes
Feb 19, 2026
…a-matching-datetime-output Signed-off-by: Joe Spadola <joe.spadola@clickhouse.com>
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.
Summary
utc_tz_aware="schema"mode which returns datetimes that match the server's explicit column definition. That means it'll be timezone-aware when the column schema defines a timezone e.g.DateTime('UTC')and naive for bareDateTimecolumnsutc_tz_awareparameter and raisesProgrammingErrorfor unrecognized string valuesNote on naming
Extending
utc_tz_awarefrom a boolean to also accept a string is admittedly not the cleanest API. The parameter name implies UTC-specific behavior, but "schema" mode applies to all timezones. This is intentional as a short-term unblock for users who need schema-matching behavior now. I'll open a separate issue to renameutc_tz_awareto something more appropriate liketz_modeas part of the 1.0 release which will be happening soon.Closes #645
Checklist
Delete items not relevant to your PR: