擷取資料湖中資料表指定欄位的統計資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dlf:GetTableColumnStatistics |
*全部資源
|
無 | 無 |
請求文法
GET /api/metastore/catalogs/databases/tables/columnstatistics HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| CatalogId |
string |
否 |
資料目錄 ID。 |
1344371 |
| DatabaseName |
string |
否 |
資料庫名稱。 |
database_test |
| TableName |
string |
否 |
資料表名稱。 |
test_table_20201223 |
| ColumnNames | ListString |
否 |
資料表的欄位列表。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回訊息體。 |
||
| Code |
string |
狀態代碼。 |
OK |
| ColumnStatisticsObjList |
array |
欄位統計資訊列表。 |
[] |
| ColumnStatisticsObj |
欄位統計資訊。 |
||
| Message |
string |
返回資訊。 |
. |
| RequestId |
string |
請求 ID。 |
B7F4B621-E41E-4C84-B97F-42B5380A32BB |
| Success |
boolean |
是否調用成功。
|
true |
code:錯誤碼。
message:錯誤資訊。
requestId:標記當前請求唯一 ID。
Success:true/false,判定請求是否成功。如果為 true,那麼 ColumnStatisticsObjList 就有值。
樣本
正常返回樣本
JSON格式
{
"Code": "OK",
"ColumnStatisticsObjList": [
{
"ColumnName": "col1",
"ColumnType": "int",
"ColumnStatisticsData": {
"StatisticsData": "{\"numNulls\":0,\"numTrues\":1,\"numFalses\":5}",
"StatisticsType": "BOOLEAN_STATS"
}
}
],
"Message": ".",
"RequestId": "B7F4B621-E41E-4C84-B97F-42B5380A32BB",
"Success": true
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。