zeroshade commented on code in PR #577:
URL: https://github.com/apache/iceberg-go/pull/577#discussion_r2379605318
##########
table/metadata_internal_test.go:
##########
@@ -717,14 +766,38 @@ func TestMetadataV2Serialize(t *testing.T) {
DefaultSpecID: 0,
SortOrderList: []SortOrder{UnsortedSortOrder},
DefaultSortOrderID: 0,
+ StatisticsList: []Statistics{
+ {
+ SnapshotID: 9876543210,
+ StatisticsPath:
"s3://bucket/v2/statistics/stats2.puffin",
+ FileSizeInBytes: 2048000,
+ FileFooterSizeInBytes: 1024,
+ BlobMetadata: []BlobMetadata{
+ {
+ Type:
BlobTypeDeletionVectorV1,
+ SnapshotID:
9876543210,
+ SequenceNumber: 5,
+ Fields:
[]int32{1},
+ Properties:
map[string]string{"deletion-vector-size": "500"},
+ },
+ },
+ },
+ },
+ PartitionStatsList: []PartitionStatistics{
+ {
+ SnapshotID: 9876543210,
+ StatisticsPath:
"s3://bucket/v2/partition-stats/part2.parquet",
+ FileSizeInBytes: 768000,
+ },
+ },
},
}
data, err := json.Marshal(toserialize)
require.NoError(t, err)
assert.JSONEq(t, `{
"last-sequence-number": 1,
- "format-version":1,
+ "format-version": 2,
Review Comment:
why change the test to testing v2 instead of v1?
--
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]