Skip to main content

List partition statistics

GET 

/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/statistics/partitions

Returns the statistics of a table's partitions, grouped by partition, for all partitions or for the partitions in the range set by from and to. Partition statistics are supported only for objects of type TABLE.

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

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    metadataObjectType stringrequired

    Possible values: [TABLE]

    The type of the metadata object. Statistics are supported for tables only; any other type fails with IllegalArgumentException. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Query Parameters

    from string

    The partition name at the lower end of the range. When omitted, the range has no lower bound.

    to string

    The partition name at the upper end of the range. When omitted, the range has no upper bound.

    fromInclusive boolean

    Whether the range includes the partition named by from. Defaults to true.

    toInclusive boolean

    Whether the range includes the partition named by to. Defaults to false.

Responses​

The statistics of the table's partitions, grouped by partition, for all partitions or for those in the requested range.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    partitionStatistics

    object[]

    The list of partition statistics results

  • Array [

  • partitionName stringrequired

    The name of the partition

    statistics

    object[]

    required

  • Array [

  • name stringrequired

    The name of the statistic

    value

    object

    The statistic's value, present only when the statistic has one. Its type depends on the statistic: a string, number, integer, boolean, array, or object.

    oneOf

    string

    reserved booleanrequired

    Whether the statistic is reserved

    modifiable booleanrequired

    Whether the statistic is modifiable

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