テーブルのパーティションのリストを取得します。
操作説明
この操作は、MaxCompute および E-MapReduce (EMR) テーブルのみをサポートします。 EMR の場合、サポートされるクラスタータイプには、メタデータ管理に Data Lake Formation (DLF) を使用する新しいデータレイククラスター、および V3.41.0 または V5.7.0 より前のバージョンの Hadoop クラスターが含まれます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dataworks:* |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| PageNumber |
integer |
任意 |
ページ番号。 |
1 |
| PageSize |
integer |
任意 |
1ページあたりのエントリ数。 デフォルト値:10。 最大値:100。 |
10 |
| TableGuid |
string |
任意 |
テーブルの一意の識別子。 |
odps.engine_name.table_name |
| ClusterId |
string |
任意 |
EMR クラスターの ID。 DataSourceType が EMR の場合にのみ必須です。 EMR コンソールにログインしてクラスター ID を取得します。 |
abc |
| DatabaseName |
string |
任意 |
データベースの名前。 DataSourceType が EMR の場合にのみ必須です。 「ListMetaDB」操作を呼び出してデータベース名を照会します。 |
abc |
| TableName |
string |
任意 |
EMR テーブルの名前。 DataSourceType が EMR の場合にのみ必須です。 「GetMetaDBTableList」操作を呼び出してテーブル名を照会します。 |
abc |
| DataSourceType |
string |
任意 |
データソースタイプ。 有効な値:ODPS および EMR。 |
emr |
| SortCriterion |
object |
任意 |
パーティションのソートロジック。 |
|
| SortField |
string |
任意 |
パーティションのソートに使用するフィールド。 有効な値:name および modify_time。 デフォルト値:パーティションの作成時刻。 |
name |
| Order |
string |
任意 |
ソート順。 有効な値:asc および desc。 デフォルト値:desc。 |
desc |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返されるデータ。 |
||
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
| ErrorMessage |
string |
エラーメッセージ。 |
The connection does not exist. |
| RequestId |
string |
リクエスト ID。 |
0bc1ec92159376 |
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
true |
| ErrorCode |
string |
エラーコード。 |
Invalid.Tenant.ConnectionNotExists |
| Data |
object |
返されるデータ。 |
|
| PageNumber |
integer |
ページ番号。 |
1 |
| PageSize |
integer |
1ページあたりのエントリ数。 デフォルト値:10。 最大値:100。 |
10 |
| TotalCount |
integer |
パーティションの総数。 |
100 |
| DataEntityList |
array<object> |
パーティションのリスト。 |
|
|
object |
データの構造。 |
||
| PartitionPath |
string |
パーティションのディレクトリ。 |
abc |
| DataSize |
integer |
パーティションサイズ。 単位:バイト。 |
19 |
| PartitionName |
string |
パーティションの名前。 |
pt=20170614 |
| Comment |
string |
備考。 |
备注 |
| ModifiedTime |
integer |
変更時刻。 単位:ミリ秒。 |
1590032868000 |
| CreateTime |
integer |
作成時刻。 単位:ミリ秒。 |
1590032868000 |
| RecordCount |
integer |
レコード数。 |
233 |
| PartitionType |
string |
パーティションのタイプ。 |
abc |
| PartitionGuid |
string |
パーティションの一意の識別子。 |
odps.engine_name.table_name.pt=20170614 |
| PartitionLocation |
string |
Hive パーティションの場所。 |
abc |
| TableGuid |
string |
テーブルの一意の識別子。 |
odps.engine_name.table_name |
例
成功レスポンス
JSONJSON
{
"HttpStatusCode": 200,
"ErrorMessage": "The connection does not exist.",
"RequestId": "0bc1ec92159376",
"Success": true,
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 100,
"DataEntityList": [
{
"PartitionPath": "abc",
"DataSize": 19,
"PartitionName": "pt=20170614",
"Comment": "备注",
"ModifiedTime": 1590032868000,
"CreateTime": 1590032868000,
"RecordCount": 233,
"PartitionType": "abc",
"PartitionGuid": "odps.engine_name.table_name.pt=20170614",
"PartitionLocation": "abc",
"TableGuid": "odps.engine_name.table_name"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter.Meta.CommonError | The specified parameter is invalid. | |
| 400 | InvalidParameter.Meta.Illegal | The app guid parameter is invalid. | |
| 400 | InvalidParameter.Meta.IllegalDate | The date format is invalid. | |
| 400 | InvalidParameter.Meta.IllegalPageError | The parameter for paging is invalid. | |
| 400 | InvalidParameter.Meta.NotExist | The object does not exist. | |
| 400 | InternalError.Meta.NoCalcEngine | An error occurred while retrieving the compute engine based on the MaxCompute project. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | InternalError.Meta.TenantTimeOut | Failed to connect to the interface network. | |
| 500 | InternalError.Meta.Unknown | An unknown error occurred while processing your request. | |
| 403 | Forbidden.Meta.NoTenant | The user is not the owner of any tenants. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。