Skip to content

[iceberg] Fix UnsupportedOperationException reading tinyint and smallint columns#7767

Merged
JingsongLi merged 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/iceberg-tinyint-smallint
May 7, 2026
Merged

[iceberg] Fix UnsupportedOperationException reading tinyint and smallint columns#7767
JingsongLi merged 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/iceberg-tinyint-smallint

Conversation

@ArnavBalyan
Copy link
Copy Markdown
Member

Purpose

  • Iceberg toByteBuffer encodes tiny and small int as 4 byte little endian int, but IcebergConversions.toPaimonObject has no matching case and throws UnsupportedOperationException.
  • Occurs when the type is used as a partition column and decoded back into Paimon objects.
  • Add support for the same.

Tests

  • Unit tests

@ArnavBalyan
Copy link
Copy Markdown
Member Author

cc @JingsongLi thanks! :)

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 6ee657b into apache:master May 7, 2026
11 of 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.

2 participants