湖仓构建 LakeFormation-列举分区信息:响应示例

时间:2025-02-12 14:54:56

响应示例

状态码: 200

OK

{  "partitions" : [ {    "catalog_name" : "cat97bc31536be24f2cae8ecddf34a6d53a",    "database_name" : "dbe062bd53192249d7a0258062ed122683",    "table_name" : "tble25e30cecd1a4ab58ab3eba7c70b7dc2",    "partition_values" : [ "0e3af7a7552d4aa7b75f271505495590", "936b465a11b64e28aa2d047e92908707" ],    "create_time" : "2023-05-30T12:24:30.401+00:00",    "last_access_time" : "2023-05-30T12:24:30.000+00:00",    "parameters" : {      "key1" : "value1",      "transient_lastDdlTime" : "120",      "classification" : "other"    },    "storage_descriptor" : {      "columns" : [ {        "column_type" : "string",        "column_name" : "column_prefix0",        "comment" : "b2489a84845b436d8557b2a7ae44082b"      }, {        "column_type" : "string",        "column_name" : "column_prefix1",        "comment" : "f6b3ce66332e475f99aaba1c5ba8a080"      }, {        "column_type" : "string",        "column_name" : "column_prefix2",        "comment" : "9cd48faa87e04cf0b64416d9491a0131"      }, {        "column_type" : "string",        "column_name" : "column_prefix3",        "comment" : "73b0ebce76fe4b5fa97ba29e93f69093"      }, {        "column_type" : "string",        "column_name" : "column_prefix4",        "comment" : "9339b5d828314da09900d647a4dcafe2"      }, {        "column_type" : "string",        "column_name" : "column_prefix5",        "comment" : "006d9b8151ca4816bc47ba3e53428b7b"      }, {        "column_type" : "string",        "column_name" : "column_prefix6",        "comment" : "116e112b2e8c447e942ec14995bcf659"      }, {        "column_type" : "string",        "column_name" : "column_prefix7",        "comment" : "d388b4d142834eaab7e55137f4b8089d"      }, {        "column_type" : "string",        "column_name" : "column_prefix8",        "comment" : "216f8d15eb044463b2e22a31f3bd40e9"      }, {        "column_type" : "string",        "column_name" : "column_prefix9",        "comment" : "7f8565e9381e4070b3faab51badfa035"      } ],      "location" : "obs://location/test/database/de0eef7ef86a4940a266c03bc7c5a548",      "compressed" : false,      "input_format" : "0a376351bf9c4966b9258301ba0473f7",      "output_format" : "1297b151c9544f368f7c9a1708deb067",      "number_of_buckets" : 0,      "bucket_columns" : [ ],      "sort_columns" : [ ],      "serde_info" : {        "name" : "b277e0cefeaf4f78aacffbe6bd714ca4",        "serialization_library" : "8c348e0841524ce9ba0ab29cf30483cb",        "parameters" : {          "0804f29205a546efabd6c6934badfa81" : "4e4d5a8d807e4150af0df5cb967810dd"        }      },      "parameters" : {        "27976ea945ed4486a938e6336e7b4923" : "679081deb759451cbc3ccacdcd4e4940",        "08f5c45c202b4572b1b3c2255205a2a6" : "7cd4dab5553f4c20b3d08d2a59b8eeca"      },      "skewed_info" : {        "skewed_column_names" : [ ],        "skewed_column_value_location_maps" : { },        "skewed_column_values" : [ ]      },      "stored_as_sub_directories" : false    }  } ],  "page_info" : {    "current_count" : 1  }}

状态码: 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/ListPartitions.html