湖仓构建 LAKEFORMATION-获取表的列统计信息:响应示例

时间:2024-04-08 11:19:41

响应示例

状态码: 200

OK

[ {
  "column_name" : "column_name",
  "column_type" : "string",
  "data_type" : "int",
  "binary_statistics_data" : {
    "maximum_length" : 0,
    "average_length" : 0,
    "number_of_null" : 0
  },
  "long_statistics_data" : {
    "minimum_value" : 0,
    "maximum_value" : 0,
    "number_of_null" : 0,
    "number_of_distinct_value" : 0,
    "bit_vector" : "string"
  },
  "decimal_statistics_data" : {
    "minimum_value" : {
      "scale" : 0,
      "unscaled" : "string"
    },
    "maximum_value" : {
      "scale" : 0,
      "unscaled" : "string"
    },
    "number_of_null" : 0,
    "number_of_distinct_value" : 0,
    "bit_vector" : "string"
  },
  "string_statistics_data" : {
    "average_length" : 0,
    "maximum_length" : 0,
    "number_of_null" : 0,
    "number_of_distinct_value" : 0,
    "bit_vector" : "string"
  },
  "double_statistics_data" : {
    "minimum_value" : 0,
    "maximum_value" : 0,
    "number_of_null" : 0,
    "number_of_distinct_value" : 0,
    "bit_vector" : "string"
  },
  "date_statistics_data" : {
    "minimum_value" : "2023-01-09T09:40:45.206Z",
    "maximum_value" : "2023-01-09T09:40:45.206Z",
    "number_of_null" : 0,
    "number_of_distinct_value" : 0,
    "bit_vector" : "string"
  },
  "boolean_statistics_data" : {
    "number_of_true" : 0,
    "number_of_false" : 0,
    "number_of_null" : 0
  }
} ]

状态码: 400

Bad Request

{
  "error_code" : "common.01000001",
  "error_msg" : "failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"
}

状态码: 401

Unauthorized

{
  "error_code": 'APIG.1002',
  "error_msg": 'Incorrect token or token resolution failed'
}

状态码: 403

Forbidden

{
  "error" : {
    "code" : "403",
    "message" : "X-Auth-Token is invalid in the request",
    "error_code" : null,
    "error_msg" : null,
    "title" : "Forbidden"
  },
  "error_code" : "403",
  "error_msg" : "X-Auth-Token is invalid in the request",
  "title" : "Forbidden"
}

状态码: 404

Not Found

{
  "error_code" : "common.01000001",
  "error_msg" : "response status exception, code: 404"
}

状态码: 408

Request Timeout

{
  "error_code" : "common.00000408",
  "error_msg" : "timeout exception occurred"
}

状态码: 500

Internal Server Error

{
  "error_code" : "common.00000500",
  "error_msg" : "internal error"
}
support.huaweicloud.com/api-lakeformation/ListTableColumnStatistics.html