Skip to main content
Version: 1.2.0

Alter function

PUT 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/functions/:function

Alter function

Request

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

    function stringrequired

    The name of the function

Body

    updates

    object[]

    required

  • Array [

  • oneOf

    @type stringrequired

    Possible values: [updateComment]

    newComment stringnullable

    The new comment of the function. Can be null to clear the comment.

  • ]

Responses

The response of function object

Schema

    code int32

    Possible values: [0]

    Status code of the response

    function

    object

    name stringrequired

    The name of the function

    functionType stringrequired

    Possible values: [SCALAR, AGGREGATE, TABLE]

    The type of the function

    deterministic boolean

    Whether the function is deterministic

    comment stringnullable

    The comment of the function

    definitions

    object[]

    required

    The definitions of the function

  • Array [

  • parameters

    object[]

    The parameters of the function definition

  • Array [

  • name stringrequired

    The name of the parameter

    dataType

    object

    required

    The data type of the parameter

    oneOf

    string

    comment stringnullable

    The comment of the parameter

    defaultValue

    object

    The default value expression of the parameter

    oneOf

    type string

    Possible values: [literal]

    dataType

    object

    required

    oneOf

    string

    value stringrequired

    The string format of the literal value

  • ]

  • returnType

    object

    The return type of the function (for SCALAR and AGGREGATE functions)

    oneOf

    string

    returnColumns

    object[]

    nullable

    The return columns of the function (for TABLE functions)

  • Array [

  • name stringrequired

    The name of the return column

    dataType

    object

    required

    The data type of the return column

    oneOf

    string

    comment stringnullable

    The comment of the return column

  • ]

  • impls

    object[]

    The implementations of the function definition

  • Array [

  • oneOf

    language stringrequired

    Possible values: [SQL]

    runtime stringrequired

    Possible values: [SPARK, TRINO]

    The runtime type of the implementation

    sql stringrequired

    The SQL expression

    resources

    object

    External resources required by a function implementation

    jars string[]nullable

    JAR file URIs

    files string[]nullable

    File URIs

    archives string[]nullable

    Archive URIs

    properties

    object

    nullable

    Additional properties

    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...