Skip to content

Writing UTC timestamp to an iceberg table fails #2478

Open

Description

@xanderbailey

Apache Iceberg Rust version

None

Describe the bug

Writing UTC timestamp to an iceberg table fails in the arrow writer. A discussion was had in arrow-rs if the logic should live there to slacken this and the suggestion was to handle this in application code similar to what datafusion does for this exact problem.

 ArrowError(
    "Incompatible type. Field 'timestamp' has type Timestamp(µs, \"+00:00\"), array has type Timestamp(µs, \"UTC\")",
 ),

To Reproduce

No response

Expected behavior

Don't fail, these two types are identical semantically

Willingness to contribute

I can contribute a fix for this bug independently

Activity

  1. added
    bug
    on May 20, 2026
  2. blackmwk commented on Jun 18, 2026

    @blackmwk
    Contributor

    See this comment: #2477 (review) I don't think we should do it in iceberg library.

  3. xanderbailey commented on Jul 15, 2026

    @xanderbailey
    ContributorAuthor

    Though I think it may be correct that down in the ParquetWriter we may not want to encode this logic, I do think it's pretty important that we fix this in the datafusion integration.

  4. blackmwk commented on Jul 17, 2026

    @blackmwk
    Contributor

    Though I think it may be correct that down in the ParquetWriter we may not want to encode this logic, I do think it's pretty important that we fix this in the datafusion integration.

    I prefer to do it in query engine. If we do it in datafusion integration, we need to check the schema for every batch in the physical executor. But it we do it in query engine, it only needs to do it in planning phase, and insert a conversion executor node when necessary.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions