> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/reference-1/sql-commands/iceberg-tables/mirror-iceberg-tables/create-mirror.md).

# CREATE MIRROR

Prior to creating a mirror on your table, please ensure you create a catalog integration and S3 volume in Snowflake, and create the table you want to mirror. See [this](/content/how-to-guides-1/data/query-upsolver-iceberg-tables-from-snowflake.md) guide for instructions.

## Syntax

```sql
CREATE MIRROR FOR <table_identifier>
    IN <snowflake_connection_name.schema.tbl_name>
    CATALOG_INTEGRATION = <CATALOG_INTEGRATION>
    EXTERNAL_VOLUME = <EXTERNAL_VOLUME>
    MIRROR_INTERVAL = <integer> { MINUTE[S] | HOUR[S] | DAY[S] };
```

**Jump to:**

* [Table identifier](#table-identifier)
* [IN](#in)
* [CATALOG\_INTEGRATION](#catalog_integration)
* [EXTERNAL\_VOLUME](#external_volume)
* [MIRROR\_INTERVAL](#mirror_interval)

#### Table identifier

Table identifiers are provided in the following format:

```sql
<catalog_name>.<schema_name>.<table_name>
```

Note that only metastore connection types are accepted for the catalog name.

Valid table names match the following identifier format:

```sql
identifier = "([^"]|"")*"|[A-Za-z_][A-Za-z0-9_]*;
```

#### `IN`

This is the table identifier for your Snowflake table where your data will be mirrored. This should be in the following format:

```sql
<snowflake_connection_name>.<schema_name>.<table_name>
```

#### `CATALOG_INTEGRATION`

The name of the catalog integration created in Snowflake.

#### `EXTERNAL_VOLUME`

The name of the external volume created in Snowflake.

#### `MIRROR_INTERVAL`**— editable**

Value:  integer {MINUTE\[S] | HOUR\[S] | DAY\[S] }

Default: 1 MINUTE

(Optional) How often the Snowflake mirror table is updated.

Set this option to update your Snowflake table less frequently than your Iceberg table in order to control Snowflake costs.

***

## Example

```sql
CREATE MIRROR FOR default_glue_catalog.demo.my_iceberg_table
    IN my_snowflake_connection.mirror_demo_schema.mirror_iceberg_tbl
    CATALOG_INTEGRATION = my_catalog_int
    EXTERNAL_VOLUME = iceberg_volume
    MIRROR_INTERVAL = 1 HOUR; 
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://upsolver.gitbook.io/content/reference-1/sql-commands/iceberg-tables/mirror-iceberg-tables/create-mirror.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
