Skip to content

fix(avro): skip fixed-width decimal bytes - #4386

Merged
Fokko merged 1 commit into
apache:mainfrom
iceberg-kitten:fix/avro-decimal-fixed-width-skip-20261115
Nov 16, 2026
Merged

Fokko merged 1 commit into
apache:mainfrom
iceberg-kitten:fix/avro-decimal-fixed-width-skip-20261115

Conversation

@iceberg-kitten

Copy link
Copy Markdown
Contributor

What

  • Skip the fixed-width bytes for a projected-out Avro decimal.

Why

  • Iceberg encodes Avro decimals as fixed with a precision-derived size. Reading a length prefix shifts the decoder and corrupts the next field.
  • See the Avro mapping in the Iceberg spec.

Implementation

  • Skip exactly the decimal's configured byte length.

@ebyhr ebyhr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR body links https://github.com/apache/iceberg/blob/main/format/spec.md#L1868, a line-number anchor that goes stale. Prefer a permalink or a section anchor.

@Fokko
Fokko added this pull request to the merge queue Nov 16, 2026
Merged via the queue into apache:main with commit fc4d884 Nov 16, 2026
20 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.

3 participants