Skip to main content
Version: 1.3.0

Update view

PUT 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/views/:view

Update the specified view in a schema

Request

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

    view stringrequired

    The name of the view

Body

    updates

    object[]

    required

    Possible values: >= 1

  • Array [

  • oneOf

    @type stringrequired

    Possible values: [rename]

    newName stringrequired

    The new name of the view

  • ]

Responses

Returns include the view object

Schema

    code int32

    Possible values: [0]

    Status code of the response

    view

    object

    name stringrequired

    The name of the view

    comment stringnullable

    The comment of the view

    columns

    object[]

    required

    The output columns of the view

  • Array [

  • name stringrequired

    The name of the column

    type

    object

    required

    oneOf

    string

    comment stringnullable

    The comment of the column

    nullable booleannullable

    Default value: true

    Whether the column is nullable

    defaultValue

    object

    oneOf

    type string

    Possible values: [literal]

    dataType

    object

    required

    oneOf

    string

    value stringrequired

    The string format of the literal value

    autoIncrement booleannullable

    Whether the column is auto increment

  • ]

  • representations

    object[]

    required

    The representations of the view, keyed by dialect

  • Array [

  • oneOf

    type stringrequired

    Possible values: [sql]

    The representation type discriminator

    dialect stringrequired

    The SQL dialect of this representation

    sql stringrequired

    The SQL text of the view

  • ]

  • defaultCatalog stringnullable

    The default catalog used to resolve unqualified identifiers in the view representations

    defaultSchema stringnullable

    The default schema used to resolve unqualified identifiers in the view representations

    properties

    object

    nullable

    The properties of the view

    property name* string

    audit

    object

    required

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

Loading...