Skip to content

Support reading Iceberg v3 nanosecond timestamp types (timestamp_ns, timestamptz_ns) #97015

Closed

Description

@dk-github

Company or project name

fintech

Use case

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.

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added a commit that references this issue on Feb 16, 2026
    1e2c39a
  2. changed the title [-]Support Iceberg v3 nanosecond timestamp types (`timestamp_ns`, `timestamptz_ns`)[/-] [+]Support reading Iceberg v3 nanosecond timestamp types (`timestamp_ns`, `timestamptz_ns`)[/+] on Feb 17, 2026
  3. added a commit that references this issue on Mar 7, 2026
    64c5689
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions