Skip to content

feat(schema): Add add_fields action to enable table schema updates#2120

Open
tomighita wants to merge 5 commits intoapache:mainfrom
dbt-labs:tomighita/feat-add-fields-table-action
Open

feat(schema): Add add_fields action to enable table schema updates#2120
tomighita wants to merge 5 commits intoapache:mainfrom
dbt-labs:tomighita/feat-add-fields-table-action

Conversation

@tomighita
Copy link

Which issue does this PR close?

What changes are included in this PR?

This PR creates an AddFieldsAction which implements the TransactionAction allowing users of the crate to add new fields to an iceberg table by updating the table schema. It also checks that the added fields are either optional or have a default value to avoid data corruption downstream.

Are these changes tested?

  • Unit tests for AddFieldsAction.
  • Adds one integration tests which tests that we can add data, update the table and can still read the data, ensuring backwards compatiblity.

@CTTY
Copy link
Collaborator

CTTY commented Feb 6, 2026

I'm not sure if this is the right direction, exposing add_fields alone in transaction layer seems very limiting. Maybe UpdateSchema can help with your use case?

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.

Add support for adding new fields to an iceberg table

2 participants