blob: 02ee6df595bef4427f325f849750a682f35afbab [file]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
openapi: 3.1.1
info:
title: REST Catalog API
description: This API exposes endpoints to RESTCatalog.
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: "1.0"
servers:
- url: http://localhost:8080
description: Server URL in Development environment
paths:
/v1/config:
get:
tags:
- config
summary: Get Config
operationId: getConfig
parameters:
- name: warehouse
in: query
required: false
schema:
type: string
description: Warehouse location or identifier to request from the service
responses:
"200":
description: Config defined in the server
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigResponse'
example:
overrides:
key: value
defaults:
prefix: prefix
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases:
get:
tags:
- database
summary: List Databases
operationId: listDatabases
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: List of database name
content:
application/json:
schema:
$ref: '#/components/schemas/ListDatabasesResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- database
summary: Create Database
operationId: createDatabase
parameters:
- name: prefix
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDatabaseRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"409":
$ref: '#/components/responses/DatabaseAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}:
get:
tags:
- database
summary: Get Database
operationId: getDatabase
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
responses:
"200":
description: Get a database by database name.
content:
application/json:
schema:
$ref: '#/components/schemas/GetDatabaseResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
delete:
tags:
- database
summary: Drop Database
operationId: dropDatabase
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- database
summary: Alter Database
operationId: alterDatabase
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AlterDatabaseRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AlterDatabaseResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/register:
post:
tags:
- table
summary: Register table
operationId: RegisterTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterTableRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"409":
$ref: '#/components/responses/TableAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables:
get:
tags:
- table
summary: List tables
operationId: listTables
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: tableNamePattern
description: A sql LIKE pattern (%) for table names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListTablesResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- table
summary: Create table
operationId: createTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTableRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"409":
$ref: '#/components/responses/TableAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/table-details:
get:
tags:
- table
summary: List table details
operationId: listTableDetails
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: tableNamePattern
description: A sql LIKE pattern (%) for table names. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: tableType
description: Filter tables by table type. All table types will be returned if not set or empty.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListTableDetailsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/tables:
get:
tags:
- table
summary: List tables globally
operationId: ListTablesGlobally
description: list tables paged globally which matches the given database name pattern and table name pattern both.
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: databaseNamePattern
description: A sql LIKE pattern (%) for database names. All databases will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: tableNamePattern
description: A sql LIKE pattern (%) for table names. All tables will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListTablesGloballyResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/tables/id/{tableId}:
get:
tags:
- table
summary: Get table by id
operationId: getTableById
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: tableId
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetTableResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}:
get:
tags:
- table
summary: Get table
operationId: getTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetTableResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- table
summary: Alter table
operationId: alterTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AlterTableRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"409":
$ref: '#/components/responses/TableAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
delete:
tags:
- table
summary: Drop table
operationId: dropTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/tables/rename:
post:
tags:
- table
summary: Rename table
operationId: renameTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RenameTableRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"409":
$ref: '#/components/responses/TableAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/commit:
post:
tags:
- table
summary: Commit table
operationId: commitTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CommitTableRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CommitTableResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/rollback:
post:
tags:
- table
summary: Rollback table
operationId: rollbackTable
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RollbackTableRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
404:
description:
Not Found
- TableNotExistException, table does not exist
- SnapshotNotExistException, the rollback snapshot does not exist
- TagNotExistException, the rollback tag does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
SnapshotNotExist:
$ref: '#/components/examples/SnapshotNotExistError'
TagNotExist:
$ref: '#/components/examples/TagNotExistError'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/rollback-schema:
post:
tags:
- table
summary: Rollback table schema
operationId: rollbackSchema
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RollbackSchemaRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/token:
get:
tags:
- table
summary: Get table token
operationId: getTableToken
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
responses:
"200":
description: DataToken for visit data.
content:
application/json:
schema:
$ref: '#/components/schemas/GetTableDataTokenResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/auth:
post:
tags:
- table
summary: Auth table query
operationId: authTableQuery
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuthTableQueryRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AuthTableQueryResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"403":
$ref: '#/components/responses/ForbiddenErrorResponse'
404:
description:
Not Found
- TableNotExistException, table does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/snapshot:
get:
tags:
- table
summary: Get table snapshot
operationId: getTableSnapshot
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetTableSnapshotResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
404:
description:
Not Found
- TableNotExistException, table does not exist
- SnapshotNotExistException, the requested snapshot does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
SnapshotNotExist:
$ref: '#/components/examples/SnapshotNotExistError'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/snapshots/{version}:
get:
tags:
- table
summary: Get version snapshot
operationId: getVersionSnapshot
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: version
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetVersionSnapshotResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
404:
description:
Not Found
- TableNotExistException, table does not exist
- SnapshotNotExistException, the requested snapshot does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
SnapshotNotExist:
$ref: '#/components/examples/SnapshotNotExistError'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/snapshots:
get:
tags:
- table
summary: List snapshots
operationId: listSnapshots
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListSnapshotsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/partitions:
get:
tags:
- partition
summary: List partitions
operationId: listPartitions
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: partitionNamePattern
description: A sql LIKE pattern (%) for partition names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListPartitionsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- partition
summary: Create partitions
description: >
Creates partitions with optional position-aligned options. The server validates and stores
the partitions, options, and statistics atomically.
operationId: createPartitions
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePartitionsRequest'
responses:
"200":
description: Partitions created or found to exist
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePartitionsResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"409":
$ref: '#/components/responses/ResourceAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
"501":
description: The catalog provider does not support partition options
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/partitions/drop:
post:
tags:
- partition
summary: Drop partitions
description: Unregisters partitions from the catalog. The server never deletes data files; for a format table with catalog-managed partitions, data deletion is performed by the client afterwards.
operationId: dropPartitions
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DropPartitionsRequest'
responses:
"200":
description: Partitions dropped or found missing
content:
application/json:
schema:
$ref: '#/components/schemas/DropPartitionsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/partitions/mark:
post:
tags:
- partition
summary: MarkDone partitions
operationId: markDonePartitions
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MarkDonePartitionsRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/partitions/list-by-names:
post:
tags:
- partition
summary: List partitions by names
operationId: listPartitionsByNames
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ListPartitionsByNamesRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListPartitionsResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/partitions/list-by-filter:
post:
tags:
- partition
summary: List partitions by filter
description: Lists a page of partitions using a serialized Paimon partition predicate. The response may be a superset of the matching partitions, so clients must re-evaluate the predicate and continue pagination while nextPageToken is non-empty, even if the current page contains no partitions.
operationId: listPartitionsByFilter
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ListPartitionsByFilterRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListPartitionsResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/branches:
get:
tags:
- branch
summary: List branches
operationId: listBranches
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListBranchesResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- branch
summary: Create branch
operationId: createBranch
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateBranchRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
description:
Not Found
- TableNotExistException, table does not exist
- TagNotExistException, the requested tag does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
TagNotExist:
$ref: '#/components/examples/TagNotExistError'
"409":
$ref: '#/components/responses/BranchAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/branches/{branch}:
delete:
tags:
- branch
summary: Drop branch
operationId: dropBranch
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: branch
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/BranchNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/branches/{branch}/rename:
post:
tags:
- branch
summary: rename branch
operationId: renameBranch
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: branch
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RenameBranchRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/BranchNotExistErrorResponse'
"409":
description: Branch already exists
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/branches/{branch}/forward:
post:
tags:
- branch
summary: forward branch
operationId: forwardBranch
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: branch
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ForwardBranchRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/BranchNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/tags:
get:
tags:
- tag
summary: List tags
operationId: listTags
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: tagNamePrefix
description: A prefix for tag names. All tags will be returned if not set or empty.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListTagsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- tag
summary: Create tag
operationId: createTag
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTagRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
description:
Not Found
- TableNotExistException, table does not exist
- SnapshotNotExistException, the requested snapshot does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
TableNotExist:
$ref: '#/components/examples/TableNotExistError'
SnapshotNotExist:
$ref: '#/components/examples/SnapshotNotExistError'
"409":
$ref: '#/components/responses/TagAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/tags/{tag}:
get:
tags:
- tag
summary: Get tag
operationId: getTag
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: tag
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetTagResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TagNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
delete:
tags:
- tag
summary: Delete tag
operationId: deleteTag
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: tag
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TagNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/consumers:
get:
tags:
- table
summary: List consumers
operationId: listConsumers
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListConsumersResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/tables/{table}/consumers/reset:
post:
tags:
- table
summary: Reset consumer
operationId: resetConsumer
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: table
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ResetConsumerRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/TableNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/views:
get:
tags:
- view
summary: List views
operationId: listViews
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: viewNamePattern
description: A sql LIKE pattern (%) for view names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListViewsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- view
summary: Create view
operationId: createView
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateViewRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"409":
$ref: '#/components/responses/ViewAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/view-details:
get:
tags:
- view
summary: List view details
operationId: listViewDetails
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: viewNamePattern
description: A sql LIKE pattern (%) for view names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListViewDetailsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/views:
get:
tags:
- view
summary: List views globally
operationId: listViewsGlobally
description: List views globally which matches the given database name pattern and view name pattern both.
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: databaseNamePattern
description: A sql LIKE pattern (%) for database names. All databases will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: viewNamePattern
description: A sql LIKE pattern (%) for view names. All views will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListViewsGloballyResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/views/{view}:
get:
tags:
- view
summary: Get view
operationId: getView
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: view
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetViewResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/ViewNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- view
summary: Alter view
operationId: alterView
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: view
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AlterViewRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/ViewNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
delete:
tags:
- view
summary: Drop view
operationId: dropView
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: view
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/ViewNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/views/rename:
post:
tags:
- view
summary: Rename view
operationId: renameView
parameters:
- name: prefix
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RenameTableRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/ViewNotExistErrorResponse'
"409":
$ref: '#/components/responses/ViewAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/functions:
get:
tags:
- function
summary: List functions
operationId: listFunctions
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: functionNamePattern
description: A sql LIKE pattern (%) for function names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListFunctionsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- function
summary: Create function
operationId: createFunction
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateFunctionRequest'
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"409":
$ref: '#/components/responses/FunctionAlreadyExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/function-details:
get:
tags:
- function
summary: List function details
operationId: listFunctionDetails
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
- name: functionNamePattern
description: A sql LIKE pattern (%) for function names. Currently, only prefix matching is supported.
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListFunctionDetailsResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/DatabaseNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/functions:
get:
tags:
- function
summary: List functions globally
operationId: listFunctionsGlobally
description: List functions globally which matches the given database name pattern and function name pattern both.
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: databaseNamePattern
description: A sql LIKE pattern (%) for database names. All databases will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: functionNamePattern
description: A sql LIKE pattern (%) for function names. All functions will be returned if not set or empty. Currently, only prefix matching is supported.
in: query
schema:
type: string
- name: maxResults
in: query
schema:
type: integer
format: int32
- name: pageToken
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListFunctionsGloballyResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/functions/{function}:
get:
tags:
- function
summary: Get function
operationId: getFunction
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: function
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetFunctionResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/FunctionNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
post:
tags:
- function
summary: Alter function
operationId: alterFunction
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: function
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AlterFunctionRequest'
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/FunctionNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
delete:
tags:
- function
summary: Drop function
operationId: dropFunction
parameters:
- name: prefix
in: path
required: true
schema:
type: string
- name: database
in: path
required: true
schema:
type: string
- name: function
in: path
required: true
schema:
type: string
responses:
"200":
description: Success, no content
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"404":
$ref: '#/components/responses/FunctionNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
/v1/{prefix}/databases/{database}/semantic-views:
parameters:
- name: prefix
in: path
required: true
description: Opaque catalog prefix returned by config.
schema:
type: string
minLength: 1
- name: database
in: path
required: true
description: Database name encoded as one UTF-8 path segment.
schema:
type: string
minLength: 1
get:
tags: [ semantic-view ]
summary: List Semantic Views
operationId: listSemanticViews
description: >-
Lists visible semantic view names only. Ordinary SQL view lists do not include these objects.
Missing databases return 404. Empty pages terminate pagination and omit nextPageToken.
parameters:
- name: maxResults
in: query
description: Maximum page size; omission uses the server default.
schema:
type: integer
format: int32
minimum: 1
maximum: 1000
- name: pageToken
in: query
description: Opaque continuation token from the preceding response.
schema:
type: string
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListSemanticViewsResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"403":
$ref: '#/components/responses/ForbiddenErrorResponse'
"404":
$ref: '#/components/responses/SemanticViewNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
"501":
$ref: '#/components/responses/SemanticViewNotImplementedErrorResponse'
/v1/{prefix}/databases/{database}/semantic-views/{semanticView}:
parameters:
- name: prefix
in: path
required: true
description: Opaque catalog prefix returned by config.
schema:
type: string
minLength: 1
- name: database
in: path
required: true
description: Database name encoded as one UTF-8 path segment.
schema:
type: string
minLength: 1
- name: semanticView
in: path
required: true
description: Semantic view name encoded as one UTF-8 path segment, including dot-only names.
schema:
type: string
minLength: 1
get:
tags: [ semantic-view ]
summary: Get Semantic View
operationId: getSemanticView
description: Returns the name and complete stored definition.
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetSemanticViewResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"403":
$ref: '#/components/responses/ForbiddenErrorResponse'
"404":
$ref: '#/components/responses/SemanticViewNotExistErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
"501":
$ref: '#/components/responses/SemanticViewNotImplementedErrorResponse'
post:
tags: [ semantic-view ]
summary: Upsert Semantic View
operationId: upsertSemanticView
description: >-
Creates or atomically replaces the complete definition in an existing database.
Replacements preserve identity, creation metadata, owner, permissions, and labels.
Upserts are unconditional; the last successful write takes effect.
Ordinary SQL views share the view namespace;
both SQL view creation and semantic view upsert reject cross-type name collisions with 409.
The server validates supported model formats, syntax versions, and model features,
rejecting unsupported semantics without side effects or silently dropping fields.
Registration does not imply query engine support or grant access to sources.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertSemanticViewRequest'
example:
definition:
format: databricks-yaml
content: |
version: "1.1"
source: main.sales.orders
measures:
- name: revenue
expr: SUM(paid_amount)
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetSemanticViewResponse'
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"403":
$ref: '#/components/responses/ForbiddenErrorResponse'
"404":
$ref: '#/components/responses/SemanticViewNotExistErrorResponse'
"409":
$ref: '#/components/responses/SemanticViewConflictErrorResponse'
"413":
$ref: '#/components/responses/SemanticViewTooLargeErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
"501":
$ref: '#/components/responses/SemanticViewNotImplementedErrorResponse'
delete:
tags: [ semantic-view ]
summary: Delete Semantic View
operationId: deleteSemanticView
description: >-
Deletes the object and its direct labels and permissions, never referenced sources.
Missing objects return 404. Dependencies may prevent deletion with 409.
No query parameters or request body are accepted.
responses:
"200":
description: Success, no content
"400":
$ref: '#/components/responses/BadRequestErrorResponse'
"401":
$ref: '#/components/responses/UnauthorizedErrorResponse'
"403":
$ref: '#/components/responses/ForbiddenErrorResponse'
"404":
$ref: '#/components/responses/SemanticViewNotExistErrorResponse'
"409":
$ref: '#/components/responses/SemanticViewConflictErrorResponse'
"500":
$ref: '#/components/responses/ServerErrorResponse'
"501":
$ref: '#/components/responses/SemanticViewNotImplementedErrorResponse'
components:
#############################
# Reusable Response Objects #
#############################
responses:
SemanticViewNotExistErrorResponse:
description: Database or semantic view does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Database or semantic view does not exist.
code: 404
resourceType: SEMANTIC_VIEW
SemanticViewConflictErrorResponse:
description: SQL view name collision or dependency prevents deletion.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: SQL view name collision or dependency prevents deletion.
code: 409
resourceType: SEMANTIC_VIEW
SemanticViewTooLargeErrorResponse:
description: Definition content exceeds 1 MiB in UTF-8 bytes; no content is stored or truncated.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Definition content exceeds 1 MiB in UTF-8 bytes; no content is stored or truncated.
code: 413
resourceType: SEMANTIC_VIEW
SemanticViewNotImplementedErrorResponse:
description: The server does not implement semantic view management.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The server does not implement semantic view management.
code: 501
resourceType: SEMANTIC_VIEW
BadRequestErrorResponse:
description:
Used for 400 errors, means illegal request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Malformed request
code: 400
UnauthorizedErrorResponse:
description:
Used for 401 errors.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: No auth for this resource
code: 401
ForbiddenErrorResponse:
description:
Used for 403 errors.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Table has no permission
code: 403
ResourceNotExistErrorResponse:
description:
Used for 404 errors, which means the resource does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Resource does not exist
resourceType: TABLE
resourceName: user
code: 404
DatabaseNotExistErrorResponse:
description:
Not Found - DatabaseNotExistException, the database does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given database does not exist
resourceType: DATABASE
resourceName: db
code: 404
TableNotExistErrorResponse:
description:
Not Found - TableNotExistException, the table does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given table does not exist
resourceType: TABLE
resourceName: table
code: 404
SnapshotNotExistErrorResponse:
description:
Not Found - SnapshotNotExistException, the snapshot does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given snapshot does not exist
resourceType: SNAPSHOT
resourceName: "1"
code: 404
BranchNotExistErrorResponse:
description:
Not Found - BranchNotExistException, the branch does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given branch does not exist
resourceType: BRANCH
resourceName: branch
code: 404
TagNotExistErrorResponse:
description:
Not Found - TagNotExistException, the tag does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given tag does not exist
resourceType: TAG
resourceName: tag1
code: 404
ViewNotExistErrorResponse:
description:
Not Found - ViewNotExistException, the view does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given view does not exist
resourceType: VIEW
resourceName: view
code: 404
FunctionNotExistErrorResponse:
description:
Not Found - FunctionNotExistException, the function does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given function does not exist
resourceType: FUNCTION
resourceName: function
code: 404
ResourceAlreadyExistErrorResponse:
description:
Used for 409 errors.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Resource already exists
resourceType: TABLE
resourceName: account
code: 409
DatabaseAlreadyExistErrorResponse:
description: Conflict - The database already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given database already exists
resourceType: DATABASE
resourceName: db
code: 409
TableAlreadyExistErrorResponse:
description: Conflict - The table already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given table already exists
resourceType: TABLE
resourceName: table
code: 409
BranchAlreadyExistErrorResponse:
description: Conflict - The branch already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given branch already exists
resourceType: BRANCH
resourceName: branch
code: 409
TagAlreadyExistErrorResponse:
description: Conflict - The tag already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given tag already exists
resourceType: TAG
resourceName: tag1
code: 409
ViewAlreadyExistErrorResponse:
description: Conflict - The view already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given view already exists
resourceType: VIEW
resourceName: view
code: 409
FunctionAlreadyExistErrorResponse:
description: Conflict - The view already exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: The given function already exists
resourceType: FUNCTION
resourceName: function
code: 409
ServerErrorResponse:
description:
Used for server 5xx errors.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
message: Internal Server Error
code: 500
schemas:
SemanticViewDefinition:
type: object
required: [ format, content ]
properties:
format:
type: string
minLength: 1
description: >-
Nonblank, extensible model document format identifying both model syntax and encoding,
for example databricks-yaml, snowflake-yaml, or ossie-yaml. These are Paimon format
identifiers; servers decide which formats they support and reject unsupported ones.
Model syntax versions and expression dialects belong inside the content.
examples: [ databricks-yaml, snowflake-yaml, ossie-yaml ]
content:
type: string
minLength: 1
description: >-
Complete nonblank document, preserved verbatim, including future fields.
Maximum 1048576 UTF-8 bytes (not characters). Servers must never silently truncate.
A version inside the document identifies model syntax.
x-max-utf8-bytes: 1048576
UpsertSemanticViewRequest:
type: object
required: [ definition ]
properties:
definition:
$ref: '#/components/schemas/SemanticViewDefinition'
GetSemanticViewResponse:
type: object
required: [ name, definition ]
properties:
name:
type: string
definition:
$ref: '#/components/schemas/SemanticViewDefinition'
ListSemanticViewsResponse:
type: object
required: [ semanticViews ]
properties:
semanticViews:
type: array
items:
type: string
description: Visible semantic view names only, without full definitions.
nextPageToken:
type: string
description: Opaque continuation token; omitted on the last or an empty page.
CreateDatabaseRequest:
type: object
properties:
name:
type: string
options:
type: object
additionalProperties:
type: string
DropPartitionsRequest:
type: object
required:
- partitionSpecs
properties:
partitionSpecs:
type: array
items:
type: object
additionalProperties:
type: string
ignoreIfNotExists:
type: boolean
default: true
DropPartitionsResponse:
type: object
required:
- dropped
- missing
properties:
dropped:
type: array
items:
type: object
additionalProperties:
type: string
missing:
type: array
items:
type: object
additionalProperties:
type: string
CreatePartitionsRequest:
type: object
required:
- partitionSpecs
properties:
partitionSpecs:
type: array
items:
type: object
additionalProperties:
type: string
ignoreIfExists:
type: boolean
default: true
partitionStatistics:
description: Statistics of the partitions being created, matched to partitionSpecs by their spec rather than by position, so they may cover only some of them. A field left negative was never measured, which is not the same as zero.
type: [ array, "null" ]
items:
$ref: '#/components/schemas/PartitionStatistics'
replaceStatistics:
description: Whether partitionStatistics replace the stored values rather than add to them; required whenever partitionStatistics is present, and absent otherwise. Replacing overwrites recordCount, fileSizeInBytes, fileCount and lastFileCreationTime; adding sums the three counts and keeps the later lastFileCreationTime, since two timestamps do not add. A field reported as unknown leaves the stored one alone either way, and totalBuckets is never combined. A client that reports only the files it just wrote adds; one that reports a whole partition, such as an overwrite or a directory rescan, replaces. An additive report is rejected for a Format Table partition that already has a custom path; registering a new custom path together with its first statistics is allowed.
type: [ boolean, "null" ]
partitionOptions:
description: Optional options aligned with partitionSpecs by position. The list must have the same length as partitionSpecs; use an empty object when a partition has no options. A custom location is stored under the path key. Omitting path keeps the stored location; a path outside the table location registers a custom location for a new partition and must equal the stored path for an existing one; the partition's own default directory under the table location returns the partition there, dropping the stored path without deleting data. Returning a partition to its default directory requires replaceStatistics=true and a partitionStatistics entry with the same spec, applied in the same request. Any other path under the table location is invalid, so a provider that does not implement this rejects the request instead of storing it.
type: [ array, "null" ]
items:
type: object
additionalProperties:
type: string
CreatePartitionsResponse:
type: object
required:
- created
- existed
properties:
created:
type: array
items:
type: object
additionalProperties:
type: string
existed:
type: array
items:
type: object
additionalProperties:
type: string
AlterTableRequest:
type: object
properties:
changes:
type: array
items:
$ref: '#/components/schemas/SchemaChange'
MarkDonePartitionsRequest:
type: object
properties:
specs:
type: array
items:
type: object
ListPartitionsByNamesRequest:
type: object
properties:
specs:
type: array
description: List of partition specs to query
items:
type: object
additionalProperties:
type: string
ListPartitionsByFilterRequest:
type: object
required:
- filter
properties:
filter:
type: string
description: JSON serialization of a Paimon Predicate tree over the partition columns.
partitionNamePattern:
type: string
description: A SQL LIKE pattern (%) for partition names. Currently, only prefix matching is supported.
maxResults:
type: integer
format: int32
description: Maximum number of matching partitions to return in this page. A missing or zero value uses the server default.
pageToken:
type: string
description: Token returned by the previous page. Omit for the first page.
CreateDatabaseResponse:
type: object
properties:
name:
type: string
options:
type: object
additionalProperties:
type: string
ErrorResponse:
type: object
properties:
message:
type: string
resourceType:
type: [ string, "null" ]
enum: [ "DATABASE", "TABLE", "PARTITION", "COLUMN", "SNAPSHOT", "BRANCH", "TAG", "VIEW", "SEMANTIC_VIEW", "DIALECT", "FUNCTION", "DEFINITION", "UNKNOWN", null ]
resourceName:
type: [ string, "null" ]
code:
type: integer
format: int32
CreateTableRequest:
type: object
properties:
identifier:
$ref: '#/components/schemas/Identifier'
schema:
$ref: '#/components/schemas/Schema'
RegisterTableRequest:
type: object
properties:
identifier:
$ref: '#/components/schemas/Identifier'
path:
type: string
CreateViewRequest:
type: object
properties:
identifier:
$ref: '#/components/schemas/Identifier'
schema:
$ref: '#/components/schemas/ViewSchema'
AlterViewRequest:
type: object
properties:
changes:
type: array
items:
$ref: '#/components/schemas/ViewChange'
CreateFunctionRequest:
type: object
properties:
name:
type: string
inputParams:
type: array
items:
$ref: '#/components/schemas/DataField'
returnParams:
type: array
items:
$ref: '#/components/schemas/DataField'
deterministic:
type: boolean
definitions:
type: object
additionalProperties:
$ref: "#/components/schemas/FunctionDefinition"
comment:
type: string
options:
type: object
additionalProperties:
type: string
AlterFunctionRequest:
type: object
properties:
changes:
type: array
items:
$ref: '#/components/schemas/FunctionChange'
FunctionChange:
anyOf:
- $ref: '#/components/schemas/SetFunctionOption'
- $ref: '#/components/schemas/RemoveFunctionOption'
- $ref: '#/components/schemas/UpdateFunctionComment'
- $ref: '#/components/schemas/AddDefinition'
- $ref: '#/components/schemas/UpdateDefinition'
- $ref: '#/components/schemas/DropDefinition'
BaseFunctionChange:
discriminator:
propertyName: action
mapping:
setOption: '#/components/schemas/SetFunctionOption'
removeOption: '#/components/schemas/RemoveFunctionOption'
updateComment: '#/components/schemas/UpdateFunctionComment'
addDefinition: '#/components/schemas/AddDefinition'
updateDefinition: '#/components/schemas/UpdateDefinition'
dropDefinition: '#/components/schemas/DropDefinition'
type: object
required:
- action
properties:
action:
type: string
SetFunctionOption:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "setOption"
key:
type: string
value:
type: string
RemoveFunctionOption:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "removeOption"
key:
type: string
UpdateFunctionComment:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "updateComment"
comment:
type: [ string, "null" ]
AddDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "addDefinition"
name:
type: string
definition:
$ref: "#/components/schemas/FunctionDefinition"
UpdateDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "updateDefinition"
name:
type: string
definition:
$ref: "#/components/schemas/FunctionDefinition"
DropDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionChange'
properties:
action:
type: string
const: "dropDefinition"
name:
type: string
FunctionDefinition:
anyOf:
- $ref: '#/components/schemas/FileFunctionDefinition'
- $ref: '#/components/schemas/SQLFunctionDefinition'
- $ref: '#/components/schemas/LambdaFunctionDefinition'
BaseFunctionDefinition:
discriminator:
propertyName: type
mapping:
file: '#/components/schemas/FileFunctionDefinition'
sql: '#/components/schemas/SQLFunctionDefinition'
lambda: '#/components/schemas/LambdaFunctionDefinition'
type: object
required:
- type
properties:
type:
type: string
SQLFunctionDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionDefinition'
properties:
type:
type: string
const: "sql"
definition:
type: string
FileFunctionDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionDefinition'
properties:
type:
type: string
const: "file"
fileResources:
type: array
items:
$ref: '#/components/schemas/FunctionFileResource'
language:
type: string
className:
type: string
functionName:
type: string
LambdaFunctionDefinition:
allOf:
- $ref: '#/components/schemas/BaseFunctionDefinition'
properties:
type:
type: string
const: "lambda"
definition:
type: string
language:
type: string
FunctionFileResource:
type: object
properties:
resourceType:
type: string
uri:
type: string
ViewChange:
anyOf:
- $ref: '#/components/schemas/SetViewOption'
- $ref: '#/components/schemas/RemoveViewOption'
- $ref: '#/components/schemas/UpdateViewComment'
- $ref: '#/components/schemas/AddDialect'
- $ref: '#/components/schemas/UpdateDialect'
- $ref: '#/components/schemas/DropDialect'
BaseViewChange:
discriminator:
propertyName: action
mapping:
setOption: '#/components/schemas/SetViewOption'
removeOption: '#/components/schemas/RemoveViewOption'
updateComment: '#/components/schemas/UpdateViewComment'
addDialect: '#/components/schemas/AddDialect'
updateDialect: '#/components/schemas/UpdateDialect'
dropDialect: '#/components/schemas/DropDialect'
type: object
required:
- action
properties:
action:
type: string
SetViewOption:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "setOption"
key:
type: string
value:
type: string
RemoveViewOption:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "removeOption"
key:
type: string
UpdateViewComment:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "updateComment"
comment:
type: [ string, "null" ]
AddDialect:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "addDialect"
dialect:
type: string
query:
type: string
UpdateDialect:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "updateDialect"
dialect:
type: string
query:
type: string
DropDialect:
allOf:
- $ref: '#/components/schemas/BaseViewChange'
properties:
action:
type: string
const: "dropDialect"
dialect:
type: string
DataField:
type: object
properties:
id:
type: integer
format: int32
name:
type: string
type:
$ref: '#/components/schemas/DataType'
description:
type: string
defaultValue:
type: string
DataType:
oneOf:
- $ref: '#/components/schemas/PrimitiveType'
- $ref: '#/components/schemas/ArrayType'
- $ref: '#/components/schemas/MultisetType'
- $ref: '#/components/schemas/MapType'
- $ref: '#/components/schemas/RowType'
- $ref: '#/components/schemas/VectorType'
PrimitiveType:
type: string
ArrayType:
type: object
properties:
type:
type: string
pattern: ^ARRAY.*
example: ARRAY
element:
$ref: '#/components/schemas/DataType'
MultisetType:
type: object
properties:
type:
type: string
pattern: ^MULTISET.*
example: MULTISET
element:
$ref: '#/components/schemas/DataType'
MapType:
type: object
properties:
type:
type: string
pattern: ^MAP.*
example: MAP
key:
$ref: '#/components/schemas/DataType'
value:
$ref: '#/components/schemas/DataType'
RowType:
type: object
properties:
type:
type: string
pattern: ^ROW.*
example: ROW
fields:
type: array
items:
$ref: '#/components/schemas/DataField'
VectorType:
type: object
properties:
type:
type: string
pattern: ^VECTOR.*
example: VECTOR
element:
$ref: '#/components/schemas/DataType'
length:
type: integer
format: int32
Identifier:
type: object
properties:
database:
type: string
object:
type: string
Schema:
type: object
properties:
fields:
type: array
items:
$ref: '#/components/schemas/DataField'
partitionKeys:
type: array
items:
type: string
primaryKeys:
type: array
items:
type: string
options:
type: object
additionalProperties:
type: string
comment:
type: string
GetTableResponse:
type: object
properties:
id:
type: string
database:
type: string
name:
type: string
path:
type: string
isExternal:
type: boolean
schemaId:
type: integer
format: int64
schema:
$ref: '#/components/schemas/Schema'
owner:
type: string
createdAt:
type: integer
format: int64
createdBy:
type: string
updatedAt:
type: integer
format: int64
updatedBy:
type: string
SchemaChange:
anyOf:
- $ref: '#/components/schemas/SetOption'
- $ref: '#/components/schemas/RemoveOption'
- $ref: '#/components/schemas/UpdateComment'
- $ref: '#/components/schemas/AddColumn'
- $ref: '#/components/schemas/RenameColumn'
- $ref: '#/components/schemas/DropColumn'
- $ref: '#/components/schemas/UpdateColumnComment'
- $ref: '#/components/schemas/UpdateColumnDefaultValue'
- $ref: '#/components/schemas/UpdateColumnType'
- $ref: '#/components/schemas/UpdateColumnPosition'
- $ref: '#/components/schemas/UpdateColumnNullability'
- $ref: '#/components/schemas/DropPrimaryKey'
BaseSchemaChange:
discriminator:
propertyName: action
mapping:
setOption: '#/components/schemas/SetOption'
removeOption: '#/components/schemas/RemoveOption'
updateComment: '#/components/schemas/UpdateComment'
addColumn: '#/components/schemas/AddColumn'
renameColumn: '#/components/schemas/RenameColumn'
dropColumn: '#/components/schemas/DropColumn'
updateColumnComment: '#/components/schemas/UpdateColumnComment'
updateColumnDefaultValue: '#/components/schemas/UpdateColumnDefaultValue'
updateColumnType: '#/components/schemas/UpdateColumnType'
updateColumnPosition: '#/components/schemas/UpdateColumnPosition'
updateColumnNullability: '#/components/schemas/UpdateColumnNullability'
dropPrimaryKey: '#/components/schemas/DropPrimaryKey'
type: object
required:
- action
properties:
action:
type: string
SetOption:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "setOption"
key:
type: string
value:
type: string
RemoveOption:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "removeOption"
key:
type: string
UpdateComment:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateComment"
comment:
type: [ string, "null" ]
AddColumn:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "addColumn"
fieldNames:
type: array
items:
type: string
dataType:
$ref: '#/components/schemas/DataType'
comment:
type: string
move:
$ref: '#/components/schemas/Move'
RenameColumn:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "renameColumn"
fieldNames:
type: array
items:
type: string
newName:
type: string
DropColumn:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "dropColumn"
fieldNames:
type: array
items:
type: string
UpdateColumnComment:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateColumnComment"
fieldNames:
type: array
items:
type: string
newComment:
type: string
UpdateColumnDefaultValue:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateColumnDefaultValue"
fieldNames:
type: array
items:
type: string
newDefaultValue:
type: string
UpdateColumnType:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateColumnType"
fieldNames:
type: array
items:
type: string
newDataType:
$ref: '#/components/schemas/DataType'
keepNullability:
type: boolean
UpdateColumnPosition:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateColumnPosition"
move:
$ref: '#/components/schemas/Move'
UpdateColumnNullability:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "updateColumnNullability"
fieldNames:
type: array
items:
type: string
newNullability:
type: boolean
DropPrimaryKey:
allOf:
- $ref: '#/components/schemas/BaseSchemaChange'
properties:
action:
type: string
const: "dropPrimaryKey"
Move:
type: object
properties:
fieldName:
type: string
referenceFieldName:
type: string
type:
type: string
RenameTableRequest:
type: object
properties:
source:
$ref: '#/components/schemas/Identifier'
destination:
$ref: '#/components/schemas/Identifier'
CommitTableRequest:
type: object
properties:
tableId:
type: string
baseSnapshotUuid:
type: [ string, "null" ]
snapshot:
$ref: '#/components/schemas/Snapshot'
statistics:
type: array
items:
$ref: '#/components/schemas/PartitionStatistics'
RollbackTableRequest:
type: object
properties:
instant:
$ref: '#/components/schemas/Instant'
fromSnapshot:
type: [ integer, "null" ]
format: int64
RollbackSchemaRequest:
type: object
required:
- schemaId
properties:
schemaId:
type: integer
format: int64
Instant:
anyOf:
- $ref: '#/components/schemas/SnapshotInstant'
- $ref: '#/components/schemas/TagInstant'
BaseInstant:
discriminator:
propertyName: type
mapping:
snapshot: '#/components/schemas/SnapshotInstant'
tag: '#/components/schemas/TagInstant'
type: object
required:
- type
properties:
type:
type: string
SnapshotInstant:
allOf:
- $ref: '#/components/schemas/BaseInstant'
properties:
type:
type: string
const: "snapshot"
snapshotId:
type: integer
format: int64
TagInstant:
allOf:
- $ref: '#/components/schemas/BaseInstant'
properties:
type:
type: string
const: "tag"
tagName:
type: string
Snapshot:
type: object
properties:
version:
type: [ integer, "null" ]
format: int32
uuid:
type: [ string, "null" ]
id:
type: integer
format: int64
schemaId:
type: integer
format: int64
baseManifestList:
type: string
deltaManifestList:
type: string
changelogManifestList:
type: [ string, "null" ]
indexManifest:
type: string
commitUser:
type: string
commitIdentifier:
type: string
commitKind:
type: string
enum: [ "APPEND", "COMPACT", "OVERWRITE", "ANALYZE" ]
timeMillis:
type: integer
format: int64
logOffsets:
type: object
additionalProperties:
type: integer
format: int64
totalRecordCount:
type: integer
format: int64
deltaRecordCount:
type: integer
format: int64
changelogRecordCount:
type: integer
format: int64
watermark:
type: integer
format: int64
statistics:
type: string
TableSnapshot:
type: object
properties:
snapshot:
$ref: '#/components/schemas/Snapshot'
recordCount:
type: integer
format: int64
fileSizeInBytes:
type: integer
format: int64
fileCount:
type: integer
format: int64
lastFileCreationTime:
type: integer
format: int64
CommitTableResponse:
type: object
properties:
success:
type: boolean
GetTableDataTokenResponse:
type: object
properties:
token:
type: object
additionalProperties:
type: string
expiresAt:
type: integer
format: int64
GetTableSnapshotResponse:
type: object
properties:
snapshot:
$ref: '#/components/schemas/TableSnapshot'
GetVersionSnapshotResponse:
type: object
properties:
snapshot:
$ref: '#/components/schemas/Snapshot'
ListSnapshotsResponse:
type: object
properties:
snapshots:
type: array
items:
$ref: '#/components/schemas/Snapshot'
nextPageToken:
type: string
AuthTableQueryRequest:
type: object
properties:
select:
type: array
items:
type: string
AuthTableQueryResponse:
type: object
properties:
filter:
type: array
items:
type: string
columnMasking:
type: object
description: Column masking rules as a map from column name to transform entry JSON string.
additionalProperties:
type: string
AlterDatabaseRequest:
type: object
properties:
removals:
type: array
items:
type: string
updates:
type: object
additionalProperties:
type: string
AlterDatabaseResponse:
type: object
properties:
removed:
type: array
items:
type: string
updated:
type: array
items:
type: string
missing:
type: array
items:
type: string
ListDatabasesResponse:
type: object
properties:
databases:
type: array
items:
type: string
nextPageToken:
type: string
GetDatabaseResponse:
type: object
properties:
id:
type: string
name:
type: string
location:
type: string
options:
type: object
additionalProperties:
type: string
owner:
type: string
createdAt:
type: integer
format: int64
createdBy:
type: string
updatedAt:
type: integer
format: int64
updatedBy:
type: string
ListTablesResponse:
type: object
properties:
tables:
type: array
items:
type: string
description: table name of the table.
nextPageToken:
type: string
ListTableDetailsResponse:
type: object
properties:
tableDetails:
type: array
items:
$ref: '#/components/schemas/GetTableResponse'
nextPageToken:
type: string
ListTablesGloballyResponse:
type: object
properties:
tables:
type: array
items:
$ref: '#/components/schemas/Identifier'
nextPageToken:
type: string
ConfigResponse:
type: object
properties:
defaults:
type: object
additionalProperties:
type: string
overrides:
type: object
additionalProperties:
type: string
ListPartitionsResponse:
type: object
properties:
partitions:
type: array
items:
$ref: '#/components/schemas/Partition'
nextPageToken:
type: string
CreateBranchRequest:
type: object
properties:
branch:
type: string
fromTag:
type: [ string, "null" ]
RenameBranchRequest:
type: object
properties:
toBranch:
type: string
ForwardBranchRequest:
type: object
properties:
branch:
type: string
ListBranchesResponse:
type: object
properties:
branches:
type: array
items:
type: string
CreateTagRequest:
type: object
required:
- tagName
properties:
tagName:
type: string
snapshotId:
type: [ integer, "null" ]
format: int64
description: Optional snapshot id, if not provided uses latest snapshot
timeRetained:
type: [ string, "null" ]
description: Optional time retained as string (e.g., "1d", "12h", "30m")
ignoreIfExists:
type: boolean
default: false
description: If true, ignore if tag already exists
GetTagResponse:
type: object
properties:
tagName:
type: string
snapshot:
$ref: '#/components/schemas/Snapshot'
tagCreateTime:
type: [ integer, "null" ]
format: int64
tagTimeRetained:
type: [ string, "null" ]
ListTagsResponse:
type: object
properties:
tags:
type: array
items:
type: string
nextPageToken:
type: string
TagInfo:
type: object
properties:
tagName:
type: string
snapshotId:
type: integer
format: int64
tagCreateTime:
type: [ integer, "null" ]
format: int64
tagTimeRetained:
type: [ string, "null" ]
GetViewResponse:
type: object
properties:
id:
type: string
name:
type: string
schema:
$ref: '#/components/schemas/ViewSchema'
owner:
type: string
createdAt:
type: integer
format: int64
createdBy:
type: string
updatedAt:
type: integer
format: int64
updatedBy:
type: string
ListViewsResponse:
type: object
properties:
views:
type: array
items:
type: string
description: view name of the view.
nextPageToken:
type: string
ListViewDetailsResponse:
type: object
properties:
viewDetails:
type: array
items:
$ref: '#/components/schemas/GetViewResponse'
nextPageToken:
type: string
ListFunctionsGloballyResponse:
type: object
properties:
functions:
type: array
items:
$ref: '#/components/schemas/Identifier'
nextPageToken:
type: string
ListViewsGloballyResponse:
type: object
properties:
views:
type: array
items:
$ref: '#/components/schemas/Identifier'
nextPageToken:
type: string
ListFunctionsResponse:
type: object
properties:
functions:
type: array
items:
type: string
nextPageToken:
type: string
ListFunctionDetailsResponse:
type: object
properties:
functionDetails:
type: array
items:
$ref: '#/components/schemas/GetFunctionResponse'
nextPageToken:
type: string
GetFunctionResponse:
type: object
properties:
uuid:
type: string
name:
type: string
inputParams:
type: array
items:
$ref: '#/components/schemas/DataField'
returnParams:
type: array
items:
$ref: '#/components/schemas/DataField'
deterministic:
type: boolean
definitions:
type: object
additionalProperties:
$ref: "#/components/schemas/FunctionDefinition"
comment:
type: string
options:
type: object
additionalProperties:
type: string
owner:
type: string
createdAt:
type: integer
format: int64
createdBy:
type: string
updatedAt:
type: integer
format: int64
updatedBy:
type: string
ConsumerInfo:
type: object
properties:
consumerId:
type: string
description: The consumer identifier
nextSnapshot:
type: integer
format: int64
description: The next snapshot id of the consumer
ListConsumersResponse:
type: object
properties:
consumers:
type: array
items:
$ref: '#/components/schemas/ConsumerInfo'
nextPageToken:
type: string
description: Token for the next page of results
ResetConsumerRequest:
type: object
properties:
consumerId:
type: string
description: The consumer identifier to be reset or deleted
nextSnapshotId:
type: integer
format: int64
description: The new next snapshot id of the consumer. If not provided, the consumer will be deleted
required:
- consumerId
ViewSchema:
type: object
properties:
fields:
type: array
items:
$ref: '#/components/schemas/DataField'
query:
type: string
dialects:
type: object
additionalProperties:
type: string
comment:
type: string
options:
type: object
additionalProperties:
type: string
Partition:
type: object
properties:
spec:
type: object
recordCount:
type: integer
format: int64
fileSizeInBytes:
type: integer
format: int64
fileCount:
type: integer
format: int64
lastFileCreationTime:
type: integer
format: int64
totalBuckets:
type: integer
format: int32
done:
type: boolean
createdAt:
type: integer
format: int64
createdBy:
type: string
updatedAt:
type: integer
format: int64
updatedBy:
type: string
options:
type: object
additionalProperties:
type: string
PartitionStatistics:
type: object
properties:
spec:
type: object
recordCount:
type: integer
format: int64
fileSizeInBytes:
type: integer
format: int64
fileCount:
type: integer
format: int64
lastFileCreationTime:
type: integer
format: int64
totalBuckets:
type: integer
format: int32
#######################################
# Examples of different values #
#######################################
examples:
TableNotExistError:
summary: The requested table does not exist
value:
message: The given table does not exist
resourceType: TABLE
resourceName: table
code: 404
SnapshotNotExistError:
summary: The requested snapshot does not exist
value:
message: The given snapshot does not exist
resourceType: SNAPSHOT
resourceName: "1"
code: 404
TagNotExistError:
summary: The requested tag does not exist
value:
message: The given tag does not exist
resourceType: TAG
resourceName: tag1
code: 404
securitySchemes:
BearerAuth:
type: http
scheme: bearer