Skip to content

Conversation

@HonahX
Copy link
Contributor

@HonahX HonahX commented Jan 21, 2025

This used to be part of #11947 that does not include new unsafe builders for Snapshot and TableMetadata.

  • Refactor TableMetadata tests by parametrizing table format versions in all tests
  • Add example metadata files for V3 table
  • Add constants for several features/fields' min format version

@github-actions github-actions bot added the core label Jan 21, 2025
@HonahX HonahX marked this pull request as ready for review January 21, 2025 23:48
@HonahX HonahX linked an issue Jan 21, 2025 that may be closed by this pull request
@HonahX HonahX changed the title Core, Test: Tests for V3 Table Metadata Core, Test: Parsing and Writing Tests for V3 Metadata Jan 21, 2025
@Test
public void testInvalidMainBranch() throws IOException {
@ParameterizedTest
@FieldSource("org.apache.iceberg.TestHelpers#ALL_VERSIONS")
Copy link
Contributor

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:

Suggested change
@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.

Copy link
Contributor

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

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 22, 2025
@github-actions
Copy link

github-actions bot commented Mar 1, 2025

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing and Writing Tests for V3 Metadata

3 participants