You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support reading Iceberg v3 nanosecond timestamp types (timestamp_ns, timestamptz_ns) #97015
Iceberg format version 3 (spec) introduced two new primitive types:
timestamp_ns — nanosecond-precision timestamp without timezone
timestamptz_ns — nanosecond-precision timestamp with timezone (UTC)
ClickHouse cannot read Iceberg tables that contain these types. The schema parser in SchemaProcessor does not recognize them, and there is no mapping to ClickHouse's DateTime64(9).
This is a real usability problem today: users working with high-frequency data (trading, telemetry, scientific measurements) need nanosecond precision but are forced to store timestamps as plain Int64 (epoch nanos) in their Iceberg tables to remain compatible with ClickHouse. This loses all type semantics — no automatic timezone handling, no date arithmetic, no proper formatting by default.
Describe the solution you'd like
ClickHouse already has DateTime64(9) which stores nanosecond-precision timestamps natively. The mapping is straightforward:
Iceberg type
ClickHouse type
timestamp_ns
DateTime64(9)
timestamptz_ns
DateTime64(9, 'UTC')
This mirrors the existing microsecond mapping (timestamp → DateTime64(6), timestamptz → DateTime64(6, 'UTC'))
Even without/before full Iceberg v3 spec support, read support for these types is a small, self-contained change — it only touches the schema-to-type mapping layer. This would improve usability for users who produce Iceberg v3 tables with nanoseconds-precision timestamps from Spark, Flink, or other engines and need to query them from ClickHouse.
Activity
Add nanosecond timestamp support for Iceberg tables:
[-]Support Iceberg v3 nanosecond timestamp types (`timestamp_ns`, `timestamptz_ns`)[/-][+]Support reading Iceberg v3 nanosecond timestamp types (`timestamp_ns`, `timestamptz_ns`)[/+]Add nanosecond timestamp support for Iceberg tables