> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to connect your Iceberg catalog in ClickHouse Cloud

> Learn how to connect ClickHouse Cloud to connect to your Data Catalog and query Iceberg tables.

export const e_1 = undefined

export const e_0 = undefined

<a href="/docs/get-started/quickstarts/home" onClick={(e_0) => { e_0.preventDefault(); window.location.href = (window.location.pathname.startsWith('/docs') ? '/docs' : '') + '/get-started/quickstarts/home'; }} className="inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-zinc-500 hover:text-gray-900 dark:hover:text-[#fdff75] transition-colors font-normal no-underline"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="shrink-0"><path d="M19 12H5" /><path d="M12 19l-7-7 7-7" /></svg>All quickstarts</a>

<div className="mt-2 flex flex-wrap gap-2">
  <Badge size="lg" color="blue">Data Warehousing</Badge>
  <Badge size="lg" color="orange">Cloud</Badge>
</div>

<h2 id="prerequisites">
  Prerequisites
</h2>

Before starting this Quickstart, you should have:

To successfully follow this guide, you'll need the following:

* A running ClickHouse Cloud service. If you don't have one yet, complete the [ClickHouse Cloud quick start](/docs/get-started/setup/cloud) first.

- Access to an **Iceberg-compatible data lake**
- **Data Lake Catalog** (URL + credentials)
- Depending type of data lake catalog: Object storage credentials (for example, S3-compatible storage)
- At least one existing Iceberg table registered in the catalog

If you do not have data already in your Iceberg catalog, you can upload this dataset. We will be demonstrating with the dataset here.

<h2 id="what-youll-build">
  What you'll build
</h2>

In this Quickstart, you will:

* Connect to a Iceberg REST Catalog in ClickHouse Cloud
* Create a ClickHouse database backed by that catalog
* Query an existing Iceberg table directly from ClickHouse
* Verify that ClickHouse is reading data from your data lake

By the end, you'll have ClickHouse Cloud connected to your Iceberg catalog and be able to run SQL queries against Iceberg tables without copying data.

<Steps titleSize="h3">
  <Step title="Create a DataLakeCatalog connection" id="create-a-datalakecatalog-connection">
    In this step, you will connect to your Data Lake Catalog in ClickHouse Cloud.

    1. Open your ClickHouse Cloud service.

    2. Navigate to **Data Sources â Connect to your Data Lake Catalog**.

    3. Select your data catalog in dropdown.

    4. Fill out the form with your credential and connection information.
       For Unity Catalog, enter in:

       * Open Table Format (Iceberg)
       * ClickHouse Database name. This will be the name of your ClickHouse database you will query your iceberg tables from.
       * Workspace ID
       * Databricks catalog name
       * Client ID
       * Client Secret

       **insert images**

    5. Save the catalog. You should now see the Data Catalog load into your Data Sources page with the number of tables available on the database.
  </Step>

  <Step title="Query Iceberg Table" id="query-iceberg-table">
    In this step, you will query an Iceberg table from your Data Catalog.

    1. Either by clicking `Show Tables` or `SQL Console`, you will land in the SQL console
       with your new database connected to your data lake materialized. If you go via `SQL Console`, change the database dropdown to your Iceberg database.
    2. You should see one or more Iceberg tables listed in your filetree. Run this query:

    ```sql theme={null}
    select * from iceberg_database.`iceberg_db.your_table`
    ```

    3. ClickHouse will return the rows from your Iceberg table.
  </Step>
</Steps>

<h2 id="next-steps">
  Next steps
</h2>

Now that you have connected to your data lake, you can test out writing an Iceberg table in ClickHouse.

<Tip>
  Be mindful of your quotes. ClickHouse doesn't support three part namespaces, you must quote your `schema.table`.
</Tip>

<Frame caption="Check out the ClickHouse academy for on-demand and live training">
  <a href="https://learn.clickhouse.com/" target="_blank">
    <img src="https://mintcdn.com/private-7c7dfe99/EDr8ydtGBgFPOQea/images/academy.webp?fit=max&auto=format&n=EDr8ydtGBgFPOQea&q=85&s=27e92fc656183cc2f176211907a7aa49" alt="ClickHouse Academy — Master ClickHouse with expert-designed training for every skill level" width="560" noZoom data-path="images/academy.webp" />
  </a>
</Frame>

<div className="mt-8">
  <a href="/docs/get-started/quickstarts/home" onClick={(e_1) => { e_1.preventDefault(); window.location.href = (window.location.pathname.startsWith('/docs') ? '/docs' : '') + '/get-started/quickstarts/home'; }} className="inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-zinc-500 hover:text-gray-900 dark:hover:text-[#fdff75] transition-colors font-normal no-underline"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="shrink-0"><path d="M19 12H5" /><path d="M12 19l-7-7 7-7" /></svg>All quickstarts</a>
</div>
