-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core, Test: Parsing and Writing Tests for V3 Metadata #12025
base: main
Are you sure you want to change the base?
Conversation
Parameterize TestTableMetadata
# Conflicts: # core/src/test/java/org/apache/iceberg/TestTableMetadata.java
@Test | ||
public void testInvalidMainBranch() throws IOException { | ||
@ParameterizedTest | ||
@FieldSource("org.apache.iceberg.TestHelpers#ALL_VERSIONS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this, we could also put it as:
@FieldSource("org.apache.iceberg.TestHelpers#ALL_VERSIONS") | |
@ValueSource(ints = MIN_FORMAT_VERSION_V2) |
This avoids having to rely on the assumeThat
, which I feel makes it harder to interpret the test. I'm not super strong on this, though. Maybe our test-connaisseur @nastra can share his opinion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to do the same as mentioned in #11948 (comment) and parameterize this at the class level
This used to be part of #11947 that does not include new unsafe builders for Snapshot and TableMetadata.