Skip to content

Commit

Permalink
OpenAPI: Changes for freshness-aware table loading (#11946)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborkaszab authored Jan 28, 2025
1 parent af00d1f commit e1d2401
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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 #
##############################
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1d2401

Please sign in to comment.