获取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"
}
}
错误码
访问错误中心查看更多错误码。