You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/10/23 21:47:17 UTC
[GitHub] [incubator-iceberg] rdblue opened a new pull request #574: Add
incompatible changes to UpdateSchema API
rdblue opened a new pull request #574: Add incompatible changes to UpdateSchema API
URL: https://github.com/apache/incubator-iceberg/pull/574
Currently, the [`UpdateSchema` API](http://iceberg.apache.org/javadoc/master/index.html?org/apache/iceberg/UpdateSchema.html) doesn't allow changes that _could_ break compatibility with existing data files. But there are cases where these changes are safe. For example, creating a table with no data and making updates before any rows are written is always safe.
This extends the `UpdateSchema` API with incompatible methods: `addRequiredColumn` and `requireColumn`. By default, these methods will throw an `IllegalArgumentException` when called to make an incompatible change, unless `allowIncompatibleChanges` has been called. This ensures that the caller knows that changes are not compatible.
This also adds a compatible change, `makeColumnOptional`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org