rdblue commented on code in PR #19105:
URL: https://github.com/apache/iceberg/pull/19105#discussion_r4672804749
##########
core/src/test/java/org/apache/iceberg/TestAppend.java:
##########
@@ -230,6 +231,38 @@ public void appendToUpgradedTable() throws IOException {
statuses(EntryStatus.ADDED, EntryStatus.EXISTING));
}
+ @ParameterizedTest
+ @ValueSource(ints = {1, 2})
+ void appendToTableUpgradedFromPreV3(int formatVersion) throws IOException {
+ Table table = create("upgraded_table", SCHEMA, SPEC, formatVersion);
Review Comment:
This only exercises added rows count in a v3 table and not existing rows
count. It would probably be better to test both by setting the table to always
merge manifests, add `FILE_A`, then add `FILE_B` in a separate commit. That way
there's one existing and one added file for the upgrade.
I also don't think there's a need to append a third file in the v4 commit,
but it's fine if you want to.
--
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]