iceberg-rust icon indicating copy to clipboard operation
iceberg-rust copied to clipboard

feat(schema): refactor `UpdateSchemaAction` for schema evolution in Iceberg

Open TwinklerG opened this issue 6 months ago • 2 comments

Which issue does this PR close?

  • Closes #2119 #697

What changes are included in this PR?

Add schema_update function and refactor UpdateSchemaAction to support schema evolution operations on Iceberg tables.

A similar PR #2120(only add column and delete column), but refactor it to add more features.

Are these changes tested?

Yes. Besides, I add some complex test cases which are ported from iceberg-java, a few of them to be implemented.

TwinklerG avatar May 14 '26 09:05 TwinklerG

I'm not sure if this is the correct direction: it changes the update_schema API, and I don't think it adds much value for users/devs

Could you share more about your reasoning here?

CTTY avatar May 18 '26 22:05 CTTY

I'm not sure if this is the correct direction: it changes the update_schema API, and I don't think it adds much value for users/devs

Could you share more about your reasoning here?

Well, I have been continuously tracking the Issues #2119 #697 and the related PRs. I noticed that the merged PR #2120 only added the capabilities of adding column and deleting column, but this is obviously only a small part of the schema evolution, and I don't think the original implementation was a good one. Therefore, I imitated the implementation of iceberg java and completed this refactoring

TwinklerG avatar May 19 '26 01:05 TwinklerG

Just a heads-up that #2563 adds column rename to the existing UpdateSchemaAction, using a RenameColumn typed-builder that matches the shape in this PR — so callers adopting either land on the same surface for that operation. Mentioning it in case a smaller incremental step is useful while this larger refactor is under discussion.

nazq avatar Jun 02 '26 15:06 nazq