dttung2905 commented on code in PR #1201:
URL: https://github.com/apache/iceberg-go/pull/1201#discussion_r3431353040


##########
table/snapshot_producers_test.go:
##########
@@ -923,6 +923,54 @@ func TestComputeOwnManifests_NewTable(t *testing.T) {
        require.Nil(t, got, "new table: returned manifests must equal input")
 }
 
+// TestSummary_SnapshotByIDError verifies that summary computation fails when
+// the parent snapshot cannot be found, instead of silently treating totals as
+// starting from zero.
+func TestSummary_SnapshotByIDError(t *testing.T) {

Review Comment:
   added a new test case where parent snapshot with `Summary: nil`



-- 
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]

Reply via email to