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

The following fields are returned by SELECT queries:

Catalog integration

NameDatatypeDescription
namestringName of the catalog integration. (pattern: ^"([^"]|"")+"|[a-zA-Z_][a-zA-Z0-9_$]*$)
catalogobject
categorystringCategory of the integration. Always CATALOG.
commentstringComment.
created_onstring (date-time)Date 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_catalog_integrationsselectendpointlikeList catalog integrations.
fetch_catalog_integrationselectname, endpointFetch a catalog integration.
create_catalog_integrationinsertendpointcreateModeCreate a catalog integration.
delete_catalog_integrationdeletename, endpointifExistsDelete a catalog integration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringOrganization and Account Name (default: orgid-acctid)
namestringIdentifier (i.e. name) for the resource.
createModestringQuery 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.
ifExistsbooleanQuery 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.
likestringQuery parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters.

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 }}' -- required
AND like = '{{ like }}';

INSERT examples

Create a catalog integration.

INSERT INTO snowflake.catalog_integration.catalog_integrations (
data__name,
data__catalog,
data__table_format,
data__enabled,
data__comment,
endpoint,
createMode
)
SELECT
'{{ name }}' --required,
'{{ catalog }}' --required,
'{{ table_format }}' --required,
{{ enabled }} --required,
'{{ comment }}',
'{{ endpoint }}',
'{{ createMode }}'
;

DELETE examples

Delete a catalog integration.

DELETE FROM snowflake.catalog_integration.catalog_integrations
WHERE name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND ifExists = '{{ ifExists }}';