Iceberg Integration
Share Apache Iceberg tables with Optimove from Databricks or Snowflake. Choose the section for your platform.
Databricks
For Databricks on Azure
1. Prepare Storage
- Choose or create an Azure Data Lake Storage (ADLS) Gen2 account and a container for the data.
- Ensure that versioning is enabled on the storage account.
- Note the container URL, which will be in the format
azure://myacct.blob.core.windows.net/databricks/.
2. Create or Convert Tables to Iceberg Format
Within your Databricks workspace, create or alter your tables with the necessary properties to enable Iceberg compatibility.
For new Tables:
CREATE TABLE uc_iceberg_table_test(c1 INT) TBLPROPERTIES(
'delta.columnMapping.mode' = 'name',
'delta.enableIcebergCompatV2' = 'true',
'delta.universalFormat.enabledFormats' = 'iceberg'
);For existing Delta tables:
ALTER TABLE my_catalog.my_schema.old_delta_tbl
SET TBLPROPERTIES('delta.universalFormat.enabledFormats' = 'iceberg');3. Create an Identity for Snowflake Access
Create a service principal in Azure Active Directory or a Personal Access Token (PAT) in your Databricks workspace. This credential will be used by Optimove to authenticate to the Unity Catalog API.
4. Grant Unity Catalog Permissions
Grant the service principal or user associated with the token SELECT permissions on each table you plan to share.
GRANT SELECT ON TABLE my_catalog.my_schema.uc_iceberg_table_test TO `<sp-app-id>`;;5. Share the Following with Optimove
To finalize the integration, please provide the Optimove team with the following details:
- Fully-qualified table names (e.g.,
my_catalog.my_schema.uc_iceberg_table_test) - The PAT or service principal secret
- The ADLS Gen2 storage container URL
- Your Azure Tenant ID
- Your Databricks external location name (if you are not using 'default')
For Databricks on GCP
1. Prepare Storage
- Choose or create a Google Cloud Storage (GCS) bucket.
- Ensure that object versioning is enabled on the bucket.
2. Create or Convert Tables to Iceberg Format
Within your Databricks workspace, create or alter your tables with the necessary properties to enable Iceberg compatibility.
For new Tables:
CREATE TABLE uc_iceberg_table_test(c1 INT) TBLPROPERTIES(
'delta.columnMapping.mode' = 'name',
'delta.enableIcebergCompatV2' = 'true',
'delta.universalFormat.enabledFormats' = 'iceberg'
);For existing Delta tables:
ALTER TABLE my_catalog.my_schema.old_delta_tbl
SET TBLPROPERTIES('delta.universalFormat.enabledFormats' = 'iceberg');3. Create an Identity for Snowflake Access
Create a service principal in Azure Active Directory or a Personal Access Token (PAT) in your Databricks workspace. This credential will be used by Optimove to authenticate to the Unity Catalog API.
4. Grant Unity Catalog Permissions
Grant the service principal or user associated with the token SELECT permissions on each table you plan to share.
GRANT SELECT ON TABLE my_catalog.my_schema.uc_iceberg_table_test TO `<sp-app-id>`;;5. Share the Following with Optimove
To finalize the integration, please provide the Optimove team with the following details:
- Fully-qualified table names (e.g.,
my_catalog.my_schema.uc_iceberg_table_test) - The PAT or service principal secret
- Your GCS bucket URI
For Databricks on AWS
1. Prepare Storage
- Sign in to your AWS account.
- Choose or create an Amazon S3 bucket in the same region as your Databricks workspace.
- You must enable Bucket Versioning, as Iceberg relies on it for time-travel and rollback capabilities.
2. Create or Convert Tables to Iceberg Format
Within your Databricks workspace, create or alter your tables with the necessary properties to enable Iceberg compatibility.
For new Tables:
CREATE TABLE uc_iceberg_table_test(c1 INT) TBLPROPERTIES(
'delta.columnMapping.mode' = 'name',
'delta.enableIcebergCompatV2' = 'true',
'delta.universalFormat.enabledFormats' = 'iceberg'
);For existing Delta tables:
ALTER TABLE my_catalog.my_schema.old_delta_tbl
SET TBLPROPERTIES('delta.universalFormat.enabledFormats' = 'iceberg');3. Create an Identity for Snowflake Access
Create a service principal in Azure Active Directory or a Personal Access Token (PAT) in your Databricks workspace. This credential will be used by Optimove to authenticate to the Unity Catalog API.
4. Grant Unity Catalog Permissions
Grant the service principal or user associated with the token SELECT permissions on each table you plan to share.
GRANT SELECT ON TABLE my_catalog.my_schema.uc_iceberg_table_test TO `<sp-app-id>`;;5. Create an IAM Role for S3 Data Access
To securely grant Optimove read access to the underlying data in S3, you will create an IAM role.
Note: To complete this step, you will need two values that the Optimove team will provide after you share your initial details:
- A Snowflake IAM User ARN (e.g.,
arn:aws:iam::123456789012:user/...) - A unique External ID string
Once you receive these values from Optimove, perform the following actions in the AWS IAM console:
-
Create a new role with a "Custom trust policy". Paste the JSON below, replacing the placeholder values with the ones provided by Optimove.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::123456789012:user/extvol/UC_EXV_S3_ab12cd345e" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "SNOWFLAKE‑ACME‑2025‑07‑31" } } } ] } -
Attach a permissions policy to the role that grants read-only access to your S3 bucket.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::customer-bucket", "arn:aws:s3:::customer-bucket/*" ] } ] } -
Save the role and copy its ARN.
6. Share the Following with Optimove
To finalize the integration, please provide the Optimove team with the following details:
- Fully-qualified table names (e.g.,
my_catalog.my_schema.uc_iceberg_table_test) - The PAT or service principal secret for the Unity Catalog API
- The S3 bucket URI (e.g.,
s3://customer-bucket/) - The ARN of the IAM role you just created
Snowflake on AWS
Prerequisites
| Prerequisite | Description |
|---|---|
| S3 Bucket | An Amazon S3 bucket to store Iceberg metadata and data files. |
| Snowflake External Volume | A Snowflake object that holds the AWS IAM role ARN used to access the S3 bucket. |
| Optional: Open Catalog (Polaris) | A remote REST catalog to register and discover Iceberg tables. |
| Snowflake Catalog Integration | An object in your Snowflake account that instructs Snowflake on how to communicate with the remote catalog. |
Client-Side Setup Steps
1.1 Create or Choose an S3 Bucket
First, please provision an Amazon S3 bucket (e.g., s3://client‑lake‑prod/data/). For data recovery and security best practices, we recommend enabling bucket versioning and default encryption.
1.2 Create a Writable External Volume
In Snowflake, create an external volume that uses an IAM role to access your S3 bucket.
CREATE EXTERNAL VOLUME client_ext_vol
STORAGE_LOCATIONS = ((
NAME = 'primary'
STORAGE_PROVIDER = 'S3'
STORAGE_BASE_URL = 's3://<bucket>/data/'
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::<acct_id>:role/IcebergVolumeWriter'
))
ALLOW_WRITES = TRUE;
GRANT USAGE ON EXTERNAL VOLUME client_ext_vol TO ROLE <writer_role>;Immediately after creation, run DESC EXTERNAL VOLUME client_ext_vol;. Copy the STORAGE_AWS_IAM_USER_ARN and the STORAGE_AWS_EXTERNAL_ID values, as you will need them for the IAM role's trust policy in the next step.
1.3 Configure the IAM Role for Bucket Access
In the AWS Console, create or update the IAM role you specified in the STORAGE_AWS_ROLE_ARN. This role must have:
- A permissions policy that allows writing to the S3 bucket.
- A trust policy that allows the Snowflake user (
STORAGE_AWS_IAM_USER_ARN) to assume the role, using theSTORAGE_AWS_EXTERNAL_IDto ensure secure access.
Example Permissions Policy:
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::<bucket>",
"arn:aws:s3:::<bucket>/*"
]
}
]
}Example Trust Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "<YOUR_STORAGE_AWS_IAM_USER_ARN>" },
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": { "sts:ExternalId": "<YOUR_STORAGE_AWS_EXTERNAL_ID>" }
}
}
]
}1.4 (Optional) Create an Open Catalog
If you use a REST-based open catalog like Polaris, you can integrate it with Snowflake for easier discovery and management of your Iceberg tables.
1.5 Create a Catalog Integration
Create a catalog integration to connect Snowflake to your Iceberg catalog.
CREATE OR REPLACE CATALOG INTEGRATION client_catalog_int
CATALOG_SOURCE = POLARIS
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_URI = 'https://<polaris-endpoint>'
CATALOG_NAME = '<catalog-name>'
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_CLIENT_ID = '<client-id>'
OAUTH_CLIENT_SECRET = '<client-secret>'
OAUTH_ALLOWED_SCOPES = ('PRINCIPAL_ROLE:ALL')
)
ENABLED = TRUE;
GRANT USAGE ON INTEGRATION client_catalog_int TO ROLE <writer_role>;1.6 (Optional) Create a Catalog-Linked Database
You can link the catalog integration to a database to enable automatic discovery of new tables.
CREATE DATABASE client_lake
CATALOG = 'client_catalog_int'
EXTERNAL_VOLUME = 'client_ext_vol';1.7 Create Iceberg Tables
You can now create your Iceberg tables. If you did not link a database in the previous step, you must specify the EXTERNAL_VOLUME and CATALOG parameters in your CREATE TABLE statement.
Partitioning Recommendation: It is strongly recommended to define a PARTITION BY clause when creating Iceberg tables for efficient data processing. Please coordinate with the Optimove onboarding team to determine the best partitioning strategy for your data.
CREATE ICEBERG TABLE sample_table (
id INT,
name STRING,
created_at DATE
)
PARTITION BY (id, created_at)
EXTERNAL_VOLUME = 'client_ext_vol'
CATALOG = 'client_catalog_int';1.8 Share the Following with Optimove
To finalize the integration, please provide the Optimove team with the following details:
| Item | Example Value |
|---|---|
| S3 path | s3://client‑lake‑prod/data/ |
| External volume name | client_ext_vol |
| Catalog integration name | client_catalog_int |
| Table list | client_db.sample_schema.sample_table |
| Polaris catalog namespace | client_catalog |
| IAM role ARN | arn:aws:iam::<acct_id>:role/IcebergVolumeWriter |
| External ID | The value from your DESC EXTERNAL VOLUME command |
Reference Documentation
For more detailed technical information, you can refer to the official Snowflake documentation:
Snowflake on GCP
Prerequisites
| Prerequisite | Description |
|---|---|
| GCS Bucket | A Google Cloud Storage bucket to store Iceberg metadata and data files. |
| Snowflake External Volume | A Snowflake object that stores the GCP service account identity used for reading from and writing to the GCS bucket. |
| Optional: Open Catalog (Polaris) | A REST catalog that Snowflake can use to register and discover Iceberg tables. |
| Snowflake Catalog Integration | An object in your Snowflake account that instructs Snowflake on how to communicate with the remote catalog. |
Client-Side Setup Steps
1.1 Create or Choose a GCS Bucket
First, please provision a Google Cloud Storage (GCS) bucket. This bucket will securely store the data and metadata files for the Iceberg tables you intend to share.
1.2 Create a Writable External Volume
In Snowflake, create an external volume that points to your GCS bucket. This will generate a service account that needs permission to access the bucket.
CREATE EXTERNAL VOLUME client_ext_vol
STORAGE_LOCATIONS = ((
NAME = 'primary'
STORAGE_PROVIDER = 'GCS'
STORAGE_BASE_URL = 'gcs://<bucket>/data/'
))
ALLOW_WRITES = TRUE;
-- Verify the volume is writable
CALL SYSTEM$VERIFY_EXTERNAL_VOLUME('client_ext_vol');
GRANT USAGE ON EXTERNAL VOLUME client_ext_vol TO ROLE <writer_role>;After creating the volume, run DESC EXTERNAL VOLUME client_ext_vol; and copy the STORAGE_GCP_SERVICE_ACCOUNT value. This is the service account identity you will grant IAM permissions to in the next step.
1.3 Grant IAM Permissions to the GCS Bucket
In the Google Cloud Console, grant the service account from the previous step access to your GCS bucket. You can create a custom IAM role with the following permissions:
storage.objects.getstorage.objects.liststorage.objects.createstorage.objects.deletestorage.objects.updatestorage.buckets.get
1.4 (Optional) Create an Open Catalog
If you use a REST-based open catalog like Polaris, you can integrate it with Snowflake. This allows for easier discovery and management of your Iceberg tables.
1.5 Create a Catalog Integration
Create a catalog integration to connect Snowflake to your Iceberg catalog.
CREATE OR REPLACE CATALOG INTEGRATION client_catalog_int
CATALOG_SOURCE = POLARIS
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_URI = 'https://<polaris-endpoint>'
CATALOG_NAME = '<catalog-name>'
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_CLIENT_ID = '<client-id>'
OAUTH_CLIENT_SECRET = '<client-secret>'
OAUTH_ALLOWED_SCOPES = ('PRINCIPAL_ROLE:ALL')
)
ENABLED = TRUE;
GRANT USAGE ON INTEGRATION client_catalog_int TO ROLE <writer_role>;1.6 (Optional) Create a Catalog-Linked Database
For accounts on Snowflake Enterprise Edition or higher, you can link the catalog integration to a database. This enables automatic discovery of new tables.
CREATE DATABASE client_lake
CATALOG = 'client_catalog_int'
EXTERNAL_VOLUME = 'client_ext_vol';1.7 Create Iceberg Tables
You can now create your Iceberg tables. If you did not link the database in the previous step, you must specify the EXTERNAL_VOLUME and CATALOG parameters in your CREATE TABLE statement.
Partitioning Recommendation: It is strongly recommended to define a PARTITION BY clause when creating Iceberg tables for efficient data processing. Please coordinate with the Optimove onboarding team to determine the best partitioning strategy for your data.
CREATE ICEBERG TABLE SAMPLE_TABLE (
ID INT,
NAME STRING,
CREATED_AT DATE
)
PARTITION BY (CREATED_AT)
EXTERNAL_VOLUME = 'client_ext_vol'
CATALOG = 'client_catalog_int';1.8 Share the Following with Optimove
To finalize the integration, please provide the Optimove team with the following details:
| Item | Value |
|---|---|
| GCS path | gcs://<bucket>/data/ |
| External volume name | client_ext_vol |
| Catalog integration name | client_catalog_int |
| Table list | e.g. client_db.sample_schema.sample_table |
| Snowflake catalog name | client_catalog |
| Snowflake GCP service account email | <long‑id>@gcp-sa-snowflake-prod.iam.gserviceaccount.com |
Reference Documentation
For more detailed technical information, you can refer to the official Snowflake documentation:
Updated about 6 hours ago
