Skip to content

[iceberg] Fix ClassCastException reading timestamp with local timezone columns#7764

Open
ArnavBalyan wants to merge 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/tinyint
Open

[iceberg] Fix ClassCastException reading timestamp with local timezone columns#7764
ArnavBalyan wants to merge 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/tinyint

Conversation

@ArnavBalyan
Copy link
Copy Markdown
Member

@ArnavBalyan ArnavBalyan commented May 3, 2026

Purpose

  • Reading a timestamp with local timezone column from the Iceberg manifest throws ClassCastException. In IcebergConversions.toPaimonObject the two timestamp variants share a switch arm that casts the data type to TimestampType, but LocalZonedTimestampType is not a subtype of TimestampType.
  • Split the arm so each case casts to its own type. Write side was already doing this.
  • Fixes: [Bug] Fix ClassCastException reading TIMESTAMP_WITH_LOCAL_TIME_ZONE columns #7763

Tests

  • UT

@ArnavBalyan
Copy link
Copy Markdown
Member Author

cc @JingsongLi thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Fix ClassCastException reading TIMESTAMP_WITH_LOCAL_TIME_ZONE columns

1 participant