獲取MMA數據源內的某張表
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求語法
GET /api/v1/mms/datasources/{sourceId}/tables/{tableId} HTTP/1.1
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
sourceId | long | 是 | 數據源 ID | 12323 |
tableId | long | 是 | 表 ID | 22 |
返回參數
示例
正常返回示例
JSON
格式
{
"requestId": "E7FB14F1-4ACD-5C73-A755-B302D70AB9AD\n",
"data": {
"id": 22,
"dbId": 3,
"dbName": "mms_test",
"name": "test",
"type": "MANAGED_TABLED",
"hasPartitions": true,
"schema": {
"name": "test",
"comment": "for mms test",
"columns": [
{
"name": "user_id",
"type": "bigint",
"comment": "user id",
"defaultValue": "10",
"nullable": false
}
],
"partitions": [
{
"name": "p1",
"type": "string",
"comment": "first partition level",
"defaultValue": "abc",
"nullable": false
}
]
},
"owner": "Hive\n",
"location": "| hdfs://master-1-1.c-c127cd184bb029ea.cn-zhangjiakou.emr.aliyuncs.com:9000/user/hive/warehouse/demo\n",
"inputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat \n",
"outputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat\n",
"serde": "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe\n",
"extra": "{\"mapkey.delim\":\":\",\"collection.delim\":\",\",\"serialization.format\":\"|\",\"field.delim\":\"|\"} \n",
"partitions": 100,
"partitionsDoing": 20,
"partitionsDone": 80,
"partitionsFailed": 0,
"sourceId": 2000028,
"sourceName": "demo",
"size": 23232,
"numRows": 233232,
"updated": false,
"lastDdlTime": "2024-12-17 15:44:42\n",
"status": "DONE"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。