Skip to main content

Add partitions

POST 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/tables/:table/partitions

Adds a partition to the table and returns the added partition in a list. The request must contain exactly one partition.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

    table stringrequired

    The name of the table

Body

    partitions

    object[]

    required

    The partitions to add

  • Array [

  • oneOf

    type stringrequired

    Possible values: [identity]

    name Name (string)

    The name of the partition

    fieldNames array[]required

    The names of the fields, each field may be with multiple levels

    values

    object[]

    required

    The values of the partition, must be the same length and order as fieldNames

  • Array [

  • type string

    Possible values: [literal]

    dataType

    object

    required

    The general, read-compatible data type representation. UnparsedType preserves types that the current server cannot resolve when reading existing metadata. Endpoints that require resolved new metadata use WritableDataType instead.

    oneOf

    The string name of a primitive type, such as boolean, byte, byte unsigned, short, short unsigned, integer, integer unsigned, long, long unsigned, float, double, decimal(10,2), date, time(3), timestamp(3), timestamp_tz(3), string, char(10), varchar(10), interval_day, interval_year, uuid, fixed(16) or binary.

    string

    value stringrequired

    The string format of the literal value

  • ]

  • properties

    object

    nullable

    The properties of the partition

    property name* string
  • ]

Responses​

The added partition, with its values and properties, as a one-element list.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    partitions

    object[]

    A list of partitions

  • Array [

  • oneOf

    type stringrequired

    Possible values: [identity]

    name Name (string)

    The name of the partition

    fieldNames array[]required

    The names of the fields, each field may be with multiple levels

    values

    object[]

    required

    The values of the partition, must be the same length and order as fieldNames

  • Array [

  • type string

    Possible values: [literal]

    dataType

    object

    required

    The general, read-compatible data type representation. UnparsedType preserves types that the current server cannot resolve when reading existing metadata. Endpoints that require resolved new metadata use WritableDataType instead.

    oneOf

    The string name of a primitive type, such as boolean, byte, byte unsigned, short, short unsigned, integer, integer unsigned, long, long unsigned, float, double, decimal(10,2), date, time(3), timestamp(3), timestamp_tz(3), string, char(10), varchar(10), interval_day, interval_year, uuid, fixed(16) or binary.

    string

    value stringrequired

    The string format of the literal value

  • ]

  • properties

    object

    nullable

    The properties of the partition

    property name* string
  • ]

Loading...