# Query Apache Iceberg tables in Snowflake

[Snowflake](../querying/snowflake.md) can query an Iceberg table that another engine writes. Connect Snowflake to the table's catalog so it can find the metadata and read the Parquet files in your storage. Enable auto-refresh to pick up new snapshots.

This guide covers the externally managed case: a writer such as Send2Bucket, [Spark](../querying/spark.md) or Flink commits to the catalog and Snowflake queries the result. For tables Snowflake writes and maintains itself, see [Snowflake-managed Iceberg tables](https://docs.snowflake.com/en/user-guide/tables-iceberg) instead.

## Snowflake-managed or externally managed

| | Snowflake-managed | Externally managed |
|---|---|---|
| Catalog | Snowflake | Your REST catalog, AWS Glue, S3 Tables or metadata files |
| Writes from Snowflake | Yes | Iceberg v2 and v3 only, through the remote catalog |
| Writes from other engines | No | Yes, this is the point |
| Compaction and snapshot expiry | Snowflake runs them | The catalog's owner runs them |
| Storage bill | Snowflake, or your cloud provider on an external volume | Your cloud provider |
| Clustering keys, cloning | Supported | Not supported |

Use an externally managed table when another engine writes the data and Snowflake is one of several readers.

## Pick a catalog integration

| Catalog | `CATALOG_SOURCE` | Notes |
|---|---|---|
| Iceberg REST (Polaris, Lakekeeper, Unity Catalog, R2 Data Catalog, Supabase) | `ICEBERG_REST` | Bearer token, OAuth or SigV4 |
| Amazon S3 Tables | `ICEBERG_REST` with `CATALOG_API_TYPE = AWS_S3TABLES` | SigV4 and vended credentials, no external volume |
| AWS Glue Iceberg REST endpoint | `ICEBERG_REST` with `CATALOG_API_TYPE = AWS_GLUE` in `REST_CONFIG` | Use SigV4. Set `CATALOG_NAME` to your AWS account ID. |
| Metadata files only, no catalog | `OBJECT_STORE` | Point each table at a `metadata.json`; refresh by path |

A REST catalog is the recommended path: it is the only type that supports catalog-linked databases, and every writer that commits to it is visible to Snowflake without extra work.

## Create the catalog integration

```sql
CREATE CATALOG INTEGRATION iceberg_rest
  CATALOG_SOURCE = ICEBERG_REST
  TABLE_FORMAT = ICEBERG
  CATALOG_NAMESPACE = '<namespace>'
  REST_CONFIG = (
    CATALOG_URI = '<catalog_uri>'
    CATALOG_NAME = '<warehouse>'
    ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS
  )
  REST_AUTHENTICATION = (
    TYPE = BEARER
    BEARER_TOKEN = '<catalog_token>'
  )
  REFRESH_INTERVAL_SECONDS = 60
  ENABLED = TRUE;

SELECT SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG('iceberg_rest');
```

- Use a read-only catalog token. For an OAuth client, set `TYPE = OAUTH` with `OAUTH_CLIENT_ID`, `OAUTH_CLIENT_SECRET`, `OAUTH_ALLOWED_SCOPES` and, if the catalog does not serve its own token endpoint, `OAUTH_TOKEN_URI`.
- `REFRESH_INTERVAL_SECONDS` sets how often Snowflake polls the catalog for new snapshots: 30 by default, 30 to 86400 allowed.
- Creating an integration needs `CREATE INTEGRATION` on the account, which `ACCOUNTADMIN` has by default.

For S3 Tables, the integration signs requests with an IAM role:

```sql
CREATE CATALOG INTEGRATION s3_tables
  CATALOG_SOURCE = ICEBERG_REST
  TABLE_FORMAT = ICEBERG
  REST_CONFIG = (
    CATALOG_URI = 'https://s3tables.<region>.amazonaws.com/iceberg'
    CATALOG_API_TYPE = AWS_S3TABLES
    CATALOG_NAME = 'arn:aws:s3tables:<region>:<account_id>:bucket/<table_bucket>'
    ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS
  )
  REST_AUTHENTICATION = (
    TYPE = SIGV4
    SIGV4_IAM_ROLE = 'arn:aws:iam::<account_id>:role/snowflake-s3tables-read'
    SIGV4_SIGNING_REGION = '<region>'
  )
  ENABLED = TRUE;

DESCRIBE CATALOG INTEGRATION s3_tables;
```

Add the IAM user ARN and external ID that `DESCRIBE` shows to the role's trust policy, and give the role read access to the table bucket; [Configure a catalog integration for Amazon S3 Tables](https://docs.snowflake.com/en/user-guide/tables-iceberg-configure-catalog-integration-rest-s3tables) has the policy.

## Give Snowflake access to the data files

The catalog tells Snowflake where the Parquet files are; Snowflake still needs permission to read them.

- **Vended credentials.** If the catalog issues short-lived storage credentials, `ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS` is enough. Snowflake supports this for tables in Amazon S3, Google Cloud Storage and Azure.
- **External volume.** Otherwise, create a read-only external volume on the warehouse location. It needs its own IAM role; a storage integration cannot be reused.

```sql
CREATE EXTERNAL VOLUME iceberg_read
  STORAGE_LOCATIONS = ((
    NAME = 'warehouse'
    STORAGE_PROVIDER = 'S3'
    STORAGE_BASE_URL = 's3://<warehouse_bucket>/<path>/'
    STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::<account_id>:role/snowflake-iceberg-read'
  ))
  ALLOW_WRITES = FALSE;

DESC EXTERNAL VOLUME iceberg_read;
```

`DESC` shows the IAM user ARN and external ID for the role's trust policy. For S3-compatible storage such as Cloudflare R2 or MinIO, use `STORAGE_PROVIDER = 'S3COMPAT'` with `STORAGE_ENDPOINT` and an access key in `CREDENTIALS`.

## Register the tables

### One table at a time

```sql
CREATE ICEBERG TABLE analytics.events
  EXTERNAL_VOLUME = 'iceberg_read'
  CATALOG = 'iceberg_rest'
  CATALOG_NAMESPACE = '<namespace>'
  CATALOG_TABLE_NAME = '<table>'
  AUTO_REFRESH = TRUE;
```

Leave out `EXTERNAL_VOLUME` when the catalog vends credentials. `CATALOG_TABLE_NAME` cannot be changed later, and `AUTO_REFRESH` is off unless you set it.

### Every table in a namespace

A catalog-linked database discovers the catalog's namespaces and tables, keeps them in sync and refreshes them automatically:

```sql
CREATE DATABASE lake
  LINKED_CATALOG = (
    CATALOG = 'iceberg_rest'
    ALLOWED_NAMESPACES = ('<namespace>')
    ALLOWED_WRITE_OPERATIONS = NONE
    SYNC_INTERVAL_SECONDS = 60
  );

SELECT SYSTEM$CATALOG_LINK_STATUS('lake');
SELECT COUNT(*) FROM lake."<namespace>"."<table>";
```

`ALLOWED_WRITE_OPERATIONS = NONE` keeps Snowflake from committing to a catalog another system owns. Catalog-linked databases work only with REST catalog integrations, and do not support cloning, replication or `UNDROP`.

Snowflake upper-cases unquoted identifiers. Most Iceberg writers use lowercase names, so quote namespaces, tables and columns: `"<namespace>"."<table>"`, `"ingested_at"`.

## Keep tables current

Auto-refresh polls the catalog at the integration's interval and moves the Snowflake table to the newest snapshot.

```sql
SHOW ICEBERG TABLES IN SCHEMA analytics;            -- auto_refresh_status column
SELECT SYSTEM$AUTO_REFRESH_STATUS('analytics.events');
SELECT *
FROM TABLE(INFORMATION_SCHEMA.ICEBERG_TABLE_SNAPSHOT_REFRESH_HISTORY(TABLE_NAME => 'analytics.events'));
```

`RUNNING` is healthy. `STALLED` recovers on its own. `STOPPED` needs a manual refresh, then `ALTER ICEBERG TABLE ... SET AUTO_REFRESH = TRUE`:

```sql
ALTER ICEBERG TABLE analytics.events REFRESH;
```

A manual refresh needs table ownership and cannot run inside a transaction. Auto-refresh syncs schema changes together with new data; a schema change with no data change needs a manual refresh.

## Query and time travel

Externally managed tables take ordinary SQL. Time travel reaches any snapshot committed after the table was created in Snowflake, as long as Snowflake refreshed past it before the writer expired it:

```sql
SELECT COUNT(*) FROM analytics.events AT (TIMESTAMP => DATEADD(hour, -1, CURRENT_TIMESTAMP()));
```

## Costs

| Item | Billed as |
|---|---|
| Queries | Warehouse compute, at normal rates |
| Auto-refresh | Snowpipe line item, without per-file charges; see `ACCOUNT_USAGE.PIPE_USAGE_HISTORY` |
| Catalog-linked discovery and table creation | Cloud services and Snowflake-managed compute; see `ACCOUNT_USAGE.CATALOG_LINKED_DATABASE_USAGE_HISTORY` |
| Storage | Your cloud provider; Snowflake bills no storage for these tables |
| Cross-region reads | Egress on your storage account, if Snowflake runs in another region |

A short refresh interval on a table that commits often costs more and can slow refreshes. Match the interval to how fresh the data needs to be.

## Limits

- Iceberg v1, v2 and v3 are readable. Equality deletes are not supported; position deletes (v2) and deletion vectors (v3) are. Many unmerged position deletes can block refresh, so compact the table on the writer's side.
- Parquet unsigned integer types are not supported, and `LIST` columns must use the three-level layout.
- A table cannot move to another location; recreate it with `CREATE OR REPLACE ICEBERG TABLE`.
- If another engine upgrades the table from v2 to v3, refresh fails until the table is recreated.

## Where Send2Bucket fits

Send2Bucket commits events, logs, spans and metrics to an Iceberg table in your [REST catalog](../destinations/iceberg-rest.md) or [S3 table bucket](../destinations/s3-tables.md), one snapshot per delivery batch. Register that table as above, then read the JSON payload:

```sql
SELECT "signal_type" AS signal, COUNT(*) AS records
FROM analytics.events
GROUP BY signal;

SELECT PARSE_JSON("payload"):data:event::VARCHAR AS event, COUNT(*) AS events
FROM analytics.events
WHERE "signal_type" = 'event'
GROUP BY event
ORDER BY events DESC;
```

The columns are in [Delivery format](../delivery-format.md#table-columns). [Snowflake](../querying/snowflake.md#example-queries) has queries for logs by service and the slowest spans.

## Notes

- Iceberg tables are available to all Snowflake accounts, on every cloud and region.
- Snowflake ignores the `history.expire.min-snapshots-to-keep` table property; snapshot expiry is up to the writer.
- To read the same table from other engines, see [Trino](../querying/trino.md) with [an Iceberg REST catalog](./trino-iceberg-rest-catalog.md), and [DuckDB](../querying/duckdb.md).

## Sources

Checked 2026-11-28:

- [Apache Iceberg tables](https://docs.snowflake.com/en/user-guide/tables-iceberg)
- [CREATE CATALOG INTEGRATION (Apache Iceberg REST)](https://docs.snowflake.com/en/sql-reference/sql/create-catalog-integration-rest)
- [CREATE EXTERNAL VOLUME](https://docs.snowflake.com/en/sql-reference/sql/create-external-volume)
- [CREATE ICEBERG TABLE (Iceberg REST catalog)](https://docs.snowflake.com/en/sql-reference/sql/create-iceberg-table-rest)
- [Use a catalog-linked database](https://docs.snowflake.com/en/user-guide/tables-iceberg-catalog-linked-database)
- [Automatically refresh Apache Iceberg tables](https://docs.snowflake.com/en/user-guide/tables-iceberg-auto-refresh)
- [ALTER ICEBERG TABLE … REFRESH](https://docs.snowflake.com/en/sql-reference/sql/alter-iceberg-table-refresh)
