GetDataLakePartition

Updated at:

Retrieves the details of a data lakehouse table partition.

Try it now

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

CatalogName

string

Yes

The name of the data catalog.

hive

DbName

string

Yes

The name of the database.

default

TableName

string

Yes

The name of the table.

test_table

PartitionValues

array

Yes

A list of partition values.

string

No

The value of a partition key column.

part_val1

Tid

integer

No

The tenant ID.

Note

Hover over your profile picture in the upper-right corner of the DMS console to obtain the tenant ID. For details, see View tenant information.

3****

WorkspaceId

integer

No

The workspace ID.

12****

Response elements

Element

Type

Description

Example

object

Schema of response.

RequestId

string

The request ID, used for log tracing and troubleshooting.

FE8EE2F1-4880-46BC-A704-5CF63EAF****

ErrorCode

string

The error code returned if the request fails.

UnknownError

ErrorMessage

string

The error message returned if the call fails.

UnknownError

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Partition

DLPartition

The information about the data lakehouse table partition.

Examples

Success response

JSON format

{
  "RequestId": "FE8EE2F1-4880-46BC-A704-5CF63EAF****",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true,
  "Partition": {
    "TableName": "table_name",
    "Sd": {
      "OriginalColumns": [
        {
          "Comment": "from deserializer",
          "Type": "string",
          "Name": "col"
        }
      ],
      "SortCols": [
        {
          "Order": 1,
          "Col": "col1"
        }
      ],
      "Parameters": {
        "test": "test",
        "test2": 1
      },
      "SkewedInfo": {
        "SkewedColValues": [
          [
            "\"123\""
          ]
        ],
        "SkewedColValueLocationMaps": {
          "test": "test",
          "test2": 1
        },
        "SkewedColNames": [
          "col1"
        ]
      },
      "InputFormat": "org.apache.hadoop.mapred.SequenceFileInputFormat",
      "OutputFormat": "org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat",
      "Columns": [
        {
          "Comment": "from deserializer",
          "Type": "string",
          "Name": "col"
        }
      ],
      "IsCompressed": false,
      "SerdeInfo": {
        "SerializationLib": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
        "DeserializerClass": "org.apache.hadoop.hive.serde2.OpenCSVSerde",
        "Parameters": {
          "serialization.format": "1"
        },
        "Description": "\"serialize\"",
        "SerdeType": 0,
        "SerializerClass": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
        "Name": "name"
      },
      "BucketCols": [
        "2010"
      ],
      "NumBuckets": -1,
      "Location": "oss://xxx"
    },
    "Parameters": {
      "key": "{\"key\":\"value\"}"
    },
    "CreateTime": 1735109884,
    "Values": [
      "part_val1"
    ],
    "CatalogName": "hive",
    "DbName": "default",
    "LastAccessTime": 1608707407
  }
}

Error codes

See for a complete list.

Release notes

See 变更详情 for a complete list.