singhpk234 commented on code in PR #17642:
URL: https://github.com/apache/iceberg/pull/17642#discussion_r4705006597


##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -1361,6 +1359,62 @@ paths:
         5XX:
           $ref: '#/components/responses/ServerErrorResponse'
 
+  /v2/{prefix}/namespaces/{namespace}/tables/{table}:
+    parameters:
+      - $ref: '#/components/parameters/prefix'
+      - $ref: '#/components/parameters/namespace'
+      - $ref: '#/components/parameters/table'
+
+    get:
+      tags:
+        - Catalog API
+      summary: Load a table from the catalog
+      operationId: loadTableV2
+      description:
+        Load a table from the catalog.
+
+
+        The response contains the table's metadata and table-specific 
configuration.
+        This endpoint may return tables at any format version, including 
format version 4.
+        Clients that support format version 4 should load tables through this 
endpoint.
+
+
+        If the `snapshots` query parameter is not provided, it defaults to 
`all`.

Review Comment:
   what about statements about read-restrictions and other configs ? 



##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -4270,13 +4354,37 @@ components:
           items:
             $ref: '#/components/schemas/FieldLabels'
 
+    TableLocation:
+      type: string
+      description:
+        The table's base location, used to resolve relative paths in metadata.
+        Must be an absolute location with a URI scheme.
+
     LoadTableResult:
       description: |
         Result used when a table is successfully loaded.
 
 
-        The table metadata JSON is returned in the `metadata` field. The 
corresponding file location of table metadata should be returned in the 
`metadata-location` field, unless the metadata is not yet committed. For 
example, a create transaction may return metadata that is staged but not 
committed.
-        Clients can check whether metadata has changed by comparing metadata 
locations after the table has been created.
+        The table metadata JSON is returned in the `metadata` field.
+        The location of the table metadata file is returned in the 
`metadata-location` field when the table has one, and the table's base location 
in the `table-location` field.
+
+
+        ## Metadata location
+
+
+        The `metadata-location` field is optional.
+        It is absent when the metadata is staged but not committed, as in a 
create transaction, and when the table has no client-visible metadata location.

Review Comment:
   > catalog manages the metadata without a physical metadata file.
   
   why is this tied to v4 and not with in general v2 enhancements ? there more 
things we would like to do v2 
   - default snapshots to ref's instead of all 
   - get rid of configs ... and just have stroage creds for credentials etc.
   
   Also heads up spark and other places requires changes to support this too, 
whats the strategy here... IRC client would be fine, but engines using those 
clients might not be, we need to fix spark then ?



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