Skip to main content

catalog_integrations

Creates, updates, deletes, gets or lists a catalog_integrations resource.

Overview

Namecatalog_integrations
TypeResource
Idsnowflake.catalog_integration.catalog_integrations

Fields

NameDatatypeDescription
namestringName of the catalog integration.
catalogobject
categorystringCategory of the integration. Always CATALOG.
commentstringComment.
created_onstringDate and time when the catalog integration was created.
enabledbooleanwhether this catalog integration is available to use for Iceberg tables.
table_formatstringTable format of the catalog.
typestringType of the integration. Always CATALOG.

Methods

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_catalog_integrationSELECTname, endpoint-Fetch a catalog integration.
list_catalog_integrationsSELECTendpointlikeList catalog integrations.
create_catalog_integrationINSERTdata__catalog, data__enabled, data__name, data__table_format, endpointcreateModeCreate a catalog integration.
delete_catalog_integrationDELETEname, endpointifExistsDelete a catalog integration.

Optional Parameter Details
NameDescriptionTypeDefault
createModeQuery parameter allowing support for different modes of resource creation. Possible values include: - errorIfExists: Throws an error if you try to create a resource that already exists. - orReplace: Automatically replaces the existing resource with the current one. - ifNotExists: Creates a new resource when an alter is requested for a non-existent resource.stringerrorIfExists
ifExistsQuery parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn't exist.booleanfalse
likeQuery parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters.string-

SELECT examples

List catalog integrations.

SELECT
name,
catalog,
category,
comment,
created_on,
enabled,
table_format,
type
FROM snowflake.catalog_integration.catalog_integrations
WHERE endpoint = '{{ endpoint }}';

INSERT example

Use the following StackQL query and manifest file to create a new catalog_integrations resource.

/*+ create */
INSERT INTO snowflake.catalog_integration.catalog_integrations (
data__name,
data__catalog,
data__table_format,
data__enabled,
data__comment,
endpoint
)
SELECT
'{{ name }}',
'{{ catalog }}',
'{{ table_format }}',
'{{ enabled }}',
'{{ comment }}',
'{{ endpoint }}'
;

DELETE example

Deletes the specified catalog_integrations resource.

/*+ delete */
DELETE FROM snowflake.catalog_integration.catalog_integrations
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';