- Categories:
System functions (System Information)
SYSTEM$VERIFY_ CATALOG_ INTEGRATION¶
Verifies the configuration for a specified catalog integration for Apache Iceberg™ REST.
为了检查是否为 Iceberg REST 目录正确配置了授权和访问控制,该函数尝试使用目录集成与目录服务器进行交互。
语法
实参
rest_catalog_integration_nameName of the Iceberg REST catalog integration to test.
目录集成名称区分大小写。
返回
该函数返回一个 JSON 对象,其属性如下所述:
| Property | Description |
|---|---|
success | Specifies whether verification was successful; true if successful, otherwise false. |
errorCode | Error code of the failure (if verification fails). |
errorMessage | A detailed error message (if verification fails). |
访问控制要求
A role used to execute this operation must have the following privileges at a minimum:
| 权限 | 对象 | 备注 |
|---|---|---|
| USAGE | 目录集成 |
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
示例
The following example statement creates a REST catalog integration using an invalid OAuth client secret (this runs without error):
Use the system function to verify the catalog integration, expecting failure:
Output: