Skip to main content

Rename a table from its current name to a new name

POST 

/v1/:prefix/tables/rename

Rename a table from one identifier to another. It's valid to move a table across namespaces, but the server implementation is not required to support it.

Request​

Path Parameters

    prefix stringrequired

    The catalog name in Gravitino, as returned in defaults.prefix by GET /v1/config

Header Parameters

    Idempotency-Key uuid

    Possible values: >= 36 characters and <= 36 characters

    Optional client-provided idempotency key for safe request retries.

    When present, the server ensures no additional effects for requests that carry the same Idempotency-Key. If a prior request with this key has been finalized, the server returns an equivalent final response without re-running the operation. The response body may reflect a newer state of the catalog than existed at the time of the commit.

    Finalization rules:

    • Finalize & replay: 200, 201, 204, and deterministic terminal 4xx (including 409 such as AlreadyExists, NamespaceNotEmpty, etc.)
    • Do not finalize (not stored/replayed): 5xx

    Key Requirements:

    • Key format: UUIDv7 in string form (RFC 9562).
    • The idempotency key must be globally unique (no reuse across different operations).
    • Catalogs SHOULD NOT expire keys before the end of the advertised token lifetime.
    • If Idempotency-Key is used, clients MUST reuse the same key when retrying the same logical operation and MUST generate a new key for a different operation.

Body

required

Current table identifier to rename and new table identifier to rename to

    source

    object

    required

    namespace string[]required

    Reference to one or more levels of a namespace

    name stringrequired

    destination

    object

    required

    namespace string[]required

    Reference to one or more levels of a namespace

    name stringrequired

Responses​

Success, no content

Loading...