Skip to content

Bug: ns-precision timestamp with non-UTC timezone silently drops timezone #3127

@nssalian

Description

@nssalian

Apache Iceberg version

0.11.0 (latest release)

Please describe the bug 🐞

Apache Iceberg version

0.11.0 (main)

Please describe the bug 🐞

pa.timestamp("ns", tz="US/Pacific") converts to TimestampNanoType() (tz-naive) instead of raising TypeError. The us path correctly rejects non-UTC timezones.

raises TypeError
visit_pyarrow(pa.timestamp("us", tz="US/Pacific"), _ConvertToIceberg())

silently drops timezone
visit_pyarrow(pa.timestamp("ns", tz="US/Pacific"), _ConvertToIceberg(format_version=3))

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions