Skip to content

fix: mark _row_id and _last_updated_sequence_number optional - #2959

Open
anoopj wants to merge 1 commit into
apache:mainfrom
anoopj:materialize-row-lineage
Open

fix: mark _row_id and _last_updated_sequence_number optional#2959
anoopj wants to merge 1 commit into
apache:mainfrom
anoopj:materialize-row-lineage

Conversation

@anoopj

@anoopj anoopj commented Aug 5, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Refs #2879

What changes are included in this PR?

The two v3 row-lineage metadata columns were defined as required, but the spec requires readers to produce null for both in legit cases. e.g. when a data file has a null first_row_id, and for added or modified rows before inheritance. Iceberg Java marks both NestedField.optional accordingly. I think this was originally added as required due to an oversight.

Mark both fields optional to match. This is a prerequisite for materializing the columns on read, where a null result must be representable.

Are these changes tested?

Added a test

The two v3 row-lineage metadata columns were defined as required, but the
spec requires readers to produce null for both in legitimate cases: when a
data file has a null first_row_id (spec Row Lineage), and for added or
modified rows before inheritance. Iceberg Java marks both
NestedField.optional accordingly.

Mark both fields optional to match. This is a prerequisite for
materializing the columns on read, where a null result must be
representable.
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