You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by dw...@apache.org on 2022/07/22 16:05:54 UTC

[iceberg] branch master updated: Spec: Add sequence-number and parent-snapshot-id (#5196)

This is an automated email from the ASF dual-hosted git repository.

dweeks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 760643bd4d Spec: Add sequence-number and parent-snapshot-id (#5196)
760643bd4d is described below

commit 760643bd4df6adc321922142392ce7633c637f00
Author: Fokko Driesprong <fo...@apache.org>
AuthorDate: Fri Jul 22 18:05:48 2022 +0200

    Spec: Add sequence-number and parent-snapshot-id (#5196)
    
    * Spec: Add sequence-number and parent-snapshot-id
    
    These fields are read/written by the Java reference implementation:
    https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/SnapshotParser.java
    
    I figured it would be nice to add them here as well.
    
    * Re-arrange in the same order as the spec
---
 open-api/rest-catalog-open-api.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml
index a5e2a4e9f1..2b1d101e60 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -1105,13 +1105,15 @@ components:
       properties:
         snapshot-id:
           type: integer
+        parent-snapshot-id:
+          type: integer
+        sequence-number:
+          type: integer
         timestamp-ms:
           type: integer
         manifest-list:
           type: string
           description: Location of the snapshot's manifest list file
-        schema-id:
-          type: integer
         summary:
           type: object
           required:
@@ -1122,6 +1124,8 @@ components:
               enum: ["append", "replace", "overwrite", "delete"]
             additionalProperties:
               type: string
+        schema-id:
+          type: integer
 
     SnapshotReference:
       type: object