mbutrovich commented on code in PR #3776: URL: https://github.com/apache/iceberg-rust/pull/3776#discussion_r4742747167
########## crates/iceberg/src/inspect/metadata_table.rs: ########## Review Comment: > I think it's worth marking the enum as non-exhaustive now so future changes won't break Adding `Refs` already [breaks every exhaustive match](https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new) on `MetadataTableType`. Adding `#[non_exhaustive]` is [the same kind of break](https://doc.rust-lang.org/cargo/reference/semver.html#attr-adding-non-exhaustive), so doing it in this PR costs downstream crates nothing extra, while doing it in a later PR would break them a second time. #823 lists 12 more tables after this one, and without the attribute each of them breaks those matches again. The only exhaustive matches I found downstream are in apache/datafusion-iceberg ([`read_all`](https://github.com/apache/datafusion-iceberg/blob/ef8b51f958f66cd62ca939cb9fe4328e6abdbfac/crates/datafusion/src/metadata/scan.rs#L145-L149) and [`IcebergMetadataTableProvider::try_new`](https://github.com/apache/datafusion-iceberg/blob/ef8b51f958f66cd62ca939cb9fe4328e6abdbfac/crates/datafusion/src/metadata/table.rs#L76-L80)), which can add the wildcard arm when it bumps its pin. @antonlin1, could you apply the suggestion in this PR? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
