Skip to content

ClickHouse: Support time zone in DateTime data type - #2966

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/clickhouse-datetime-zone
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/clickhouse-datetime-zone

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

ClickHouse declares DateTime([precision,] [timezone]), so DataType::Datetime now carries an optional time zone next to the optional precision, the same pair Datetime64 already holds, so DATETIME, DATETIME(3), DATETIME('UTC') and DATETIME(3, 'UTC') parse and print back.

MySQL's DATETIME(6) keeps its separate meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant