apache / iceberg-rust

Apache Iceberg
https://rust.iceberg.apache.org/
Apache License 2.0
673 stars 159 forks source link

Update a TableSchema from a Schema #698

Open Fokko opened 1 week ago

Fokko commented 1 week ago

To make things easier for query engines to evolve schemas into a target schema, it would be great to add UnionByName to Iceberg-Rust as well. The UnionByName visitor (python, java) to make extending of the schema easy. For example, see the Python docs on Union by Name.

For example, if you have a CDC application, and you see a new schema, you can just pass it into this method to update the table. It will traverse the schema and compare it based on the names.

Depends on #697