Queries the information of all partitions in a table.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
DbName String Yes db001

The name of the database.

TableName String Yes tbl001

The name of the table.

MaxParts Integer No 100

The maximum number of partitions that are returned each time. Default value: -1. This value indicates that all partitions in the table are returned.

Response parameters

Parameter Type Example Description
Code String NO_SUCH_OBJECT

The error code returned.

Message String No such table: db001.tbl001

The error message returned.

Partitions Array of PartitionModel

The partitions returned.

CreateTime Long 12345

The time when the partition was created.

DbName String db001

The name of the database to which the partition belongs.

Parameters Map

The attributes of the partition.

String key001=value001

The values of partition attributes.

StorageDescriptorModel object

The information of the storage space of the partition.

Cols Array of FieldSchemaModel

The columns in the table to which the partition belongs.

Comment String this is comment

The remarks on the columns.

Name String col1

The name of the column.

Type String string

The type of the column.

InputFormat String org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat

The input format of the table.

Location String oss://data/xxx

The URL of the Object Storage Service (OSS) bucket in which the table is stored.

OutputFormat String org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat

The output format of the table.

Parameters Map

The attributes of the storage space of the partitions.

String key001=value001

The values of the attributes of the storage space of the partitions.

SerDeInfoModel object

The information of the serializer/deserializer (SerDe).

Name String serDeName

The name of the SerDe.

Parameters Map

The values of SerDe attributes.

String key001=value001

The values of SerDe attributes.

SerializationLib String org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe

The class library used by the SerDe to perform the serialization and deserialization.

TableName String tbl001

The name of the table to which the partitions belong.

Values Array of String p001

The values of the partitions.

RequestId String 9BEAC206-0795-4DE3-B1FD-964BEF432B23

The ID of the request.

Success Boolean false

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?TableName=tbl001
&DbName=db001
&MaxParts=100
&<Common request parameters>

Error codes

For a list of error codes, visit the API Error Center.