Skip to content

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

Merged
JingsongLi merged 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/tinyint
May 7, 2026
Merged

[iceberg] Fix ClassCastException reading timestamp with local timezone columns#7764
JingsongLi merged 1 commit into
apache: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!

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 7110b8f into apache:master May 7, 2026
12 checks passed
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

2 participants