This is an automated email from the ASF dual-hosted git repository.
pvary pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new e1d24016fa OpenAPI: Changes for freshness-aware table loading (#11946)
e1d24016fa is described below
commit e1d24016fa744150af8838e29f52662138671a45
Author: gaborkaszab <[email protected]>
AuthorDate: Tue Jan 28 15:13:49 2025 +0100
OpenAPI: Changes for freshness-aware table loading (#11946)
---
open-api/rest-catalog-open-api.yaml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/open-api/rest-catalog-open-api.yaml
b/open-api/rest-catalog-open-api.yaml
index 5994961adb..93ae7a56f0 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -934,6 +934,15 @@ paths:
key. For example, "urn:ietf:params:oauth:token-type:jwt=<JWT-token>".
parameters:
- $ref: '#/components/parameters/data-access'
+ - name: If-None-Match
+ in: header
+ description:
+ An optional header that allows the server to return 304 (Not
Modified) if the metadata
+ is current. The content is the value of the ETag received in a
CreateTableResponse or
+ LoadTableResponse.
+ required: false
+ schema:
+ type: string
- in: query
name: snapshots
description:
@@ -949,6 +958,10 @@ paths:
responses:
200:
$ref: '#/components/responses/LoadTableResponse'
+ 304:
+ description:
+ Not Modified - Based on the content of the 'If-None-Match' header
the table metadata has
+ not changed since.
400:
$ref: '#/components/responses/BadRequestErrorResponse'
401:
@@ -1877,6 +1890,14 @@ components:
type: integer
minimum: 1
+ etag:
+ name: ETag
+ in: header
+ description: Identifies a unique version of the table metadata.
+ required: false
+ schema:
+ type: string
+
##############################
# Application Schema Objects #
##############################
@@ -4591,6 +4612,9 @@ components:
application/json:
schema:
$ref: '#/components/schemas/LoadTableResult'
+ headers:
+ etag:
+ $ref: '#/components/parameters/etag'
PlanTableScanResponse:
description: Result of submitting a table scan to plan
@@ -4619,6 +4643,9 @@ components:
application/json:
schema:
$ref: '#/components/schemas/LoadTableResult'
+ headers:
+ etag:
+ $ref: '#/components/parameters/etag'
LoadViewResponse:
description: View metadata result when loading a view