From 86736333f0a1ef498a0a90a7962ded3a6379370c Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Wed, 4 Dec 2024 15:53:58 +0100 Subject: [PATCH] Fix tests --- .../catalog/formats/iceberg/fixtures/IcebergFixtures.java | 1 + .../formats/iceberg/fixtures/IcebergGenerateFixtures.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergFixtures.java b/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergFixtures.java index 0d77493b62..0fc06e9613 100644 --- a/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergFixtures.java +++ b/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergFixtures.java @@ -177,6 +177,7 @@ public static IcebergTableMetadata.Builder tableMetadataSimple() { .putSummary("operation", "testing") .sequenceNumber(123L) .timestampMs(12345678L) + .manifestList("s3://this-does-not-exist/anywhere/") .build()) .putRef("main", IcebergSnapshotRef.builder().type("branch").snapshotId(11).build()) .addSnapshotLog( diff --git a/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergGenerateFixtures.java b/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergGenerateFixtures.java index cf6aa60b41..9eee666047 100644 --- a/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergGenerateFixtures.java +++ b/catalog/format/iceberg-fixturegen/src/main/java/org/projectnessie/catalog/formats/iceberg/fixtures/IcebergGenerateFixtures.java @@ -168,7 +168,7 @@ public void close() throws IOException { }; UUID commitId = randomUUID(); long snapshotId = 1; - long sequenceNumber = 1; + long sequenceNumber = 1000; long timestamp = 1715175169320L; IcebergManifestFileGenerator manifestFileGenerator = IcebergManifestFileGenerator.builder() @@ -210,7 +210,7 @@ public void close() throws IOException { .currentSnapshotId(snapshotId) .defaultSpecId(schemaGenerator.getIcebergPartitionSpec().specId()) .defaultSortOrderId(IcebergSortOrder.UNSORTED_ORDER.orderId()) - .lastSequenceNumber(1L) + .lastSequenceNumber(1000L) .addSnapshot(snapshotWithManifestList) .build(); metadataConsumer.accept(icebergMetadataWithManifestList);