Skip to content

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

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

[iceberg] Fix UnsupportedOperationException reading tinyint and smallint columns#7767
ArnavBalyan wants to merge 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! :)

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.

1 participant