SYSTEM$SET_CATALOG_INTEGRATION

functionsupportedIceberg & external tables

docs.snowflake.com ↗

System functions

Replaces the catalog integration associated with an externally managed Apache Iceberg™ table. Use this function to update a table to work with an Iceberg REST catalog integration, which supports a wider range of Iceberg features, such as write support for externally managed Iceberg tables. You might also use this function to roll back to the original Glue catalog integration, if needed. You can also use this function to migrate your table from one Iceberg REST catalog integration to another.

Syntax

SYSTEM$SET_CATALOG_INTEGRATION(
  '<table_name>' ,
  '<new_catalog_integration_name>'
)

Parameters

NameRequiredDescription
'table_name'requiredName of the Iceberg table whose catalog integration you want to replace.
'new_catalog_integration_name'requiredName of the catalog integration that you want to migrate the given table_name to.

Returns

The function returns a status message that the catalog integration for the table is successfully migrated. For an example, see Examples.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object OWNERSHIP | Table whose catalog integration is being replaced. USAGE | Current catalog integration. USAGE | Target catalog integration. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. 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.

Troubleshooting

If the function fails, it returns an error response. Common error messages include: Error Message | Situation and Solution SYSTEM$SET_CATALOG_INTEGRATION does not support transitioning from catalog integration ‘[CURRENT_CATALOG_INTEGRATION]’ to ‘[TARGET_CATALOG_INTEGRATION]’ due to unsupported type combination | The current or target catalog integration provided doesn’t match the catalog integration types that are supported. For the supported types, see the usage notes. SYSTEM$SET_CATALOG_INTEGRATION cannot transition from ‘[CURRENT_CATALOG_INTEGRATION]’ to ‘[TARGET_CATALOG_INTEGRATION]’ due to incompatible catalog integration configurations | The given catalog integrations are of the supported type but don’t align with one of the supported transition combinations. For the supported transition combinations, see the usage notes. Currently doesn’t support performing transition when catalog integration ‘[CATALOG_INTEGRATION]’ has credential vending enabled | The provided catalog integration has credential vending enabled. Provide a catalog integration with credential vending disabled and try again. SYSTEM$SET_CATALOG_INTEGRATION can only be used on unmanaged Iceberg tables | The table provided isn’t an externally managed Iceberg table. Provide an externally managed Iceberg table and try again.