Skip to content

ClickHouse now supports years 0000–9999

YouTube Video: vEZFu-eBb0E

Mark Needham

ClickHouse 26.7 expands the supported DateTime64 range from 1900–2299 to 0000–9999.

In this video, I load nearly 20,000 events from Wikipedia's "On This Day" pages into ClickHouse. We use the url table function, JSONAsObject, and the JSON data type to explore dates that fell outside the old range, from ancient history to synthetic events in the distant future.

We also use age and dateDiff to calculate the gap between the first successful telephone test in 1876 and the first iPhone in 2007: 131 years, or just under 48,000 days.

Recent videos

YouTube Video: e-NnqMTY_3A

How to

Inspect incoming data with INSERT … RETURNING in ClickHouse

Use INSERT … RETURNING in ClickHouse 26.11 to inspect generated values, sample incoming rows, find invalid ratings, and summarise an ingestion batch.

YouTube Video: BsmTK-pa5ks

How to

Reading and writing Vortex files with ClickHouse (26.11)

Query and export Vortex files with ClickHouse 26.11, using a FineWeb dataset containing just over a million web pages.

Follow us

XBlueskySlackGithubTelegramMeetupRSS