manuzhang commented on code in PR #9449:
URL: https://github.com/apache/iceberg/pull/9449#discussion_r1446808600
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/actions/TestRewriteDataFilesAction.java:
##########
@@ -1445,6 +1445,14 @@ public void testRewriteJobOrderFilesDesc() {
assertThat(actual).as("Number of files order should not be
ascending").isNotEqualTo(expected);
}
+ @Test
+ public void testSnapshotProperty() {
+ Table table = createTable(4);
+ Result ignored = basicRewrite(table).snapshotProperty("key",
"value").execute();
+ assertThat(table.currentSnapshot().summary())
+ .containsAllEntriesOf(ImmutableMap.of("key", "value"));
Review Comment:
please also check existing summary contents are not lost.
--
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]