Skip to content

Inserting into DateTime64(9) column gave incorrect results #599

@davidwheeler123

Description

@davidwheeler123

Describe the bug

When we use the ClickHouse sink connector to ingest a timestamp into a DateTime64(9) column, we found that it gave the wrong values (see screenshot - these should all have been 2025 dates). Changing the column to DateTime64(3) resolved the issue for us

Image

Steps to reproduce

  1. Create a table with a DateTime64(9) column
  2. Create a sink connector to ingest into the table using the default ISO formatted date

Expected behaviour

The date in the clickhouse table should be the same as in Kafka message

Actual behaviour

The date in clickhouse table is in year 1970

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions