Skip to main content
ClickHouse supports integration with multiple catalogs (Unity, Glue, Polaris, etc.). In this guide, we will walk you through the steps to query your data in S3 buckets using ClickHouse and the Glue Data Catalog.
Glue supports many different table formats, but this integration only supports Iceberg tables.

Configuring Glue in AWS

To connect to the glue catalog, you will need:
  • AWS region of your catalog
  • Access Key ID/Access Secret Key (v25.12+) or AWS Role ARN (v26.2+)
For AWS Role auth, AWS Role Session Name is an additional optional field.
You will need to enable it using SET allow_database_glue_catalog = 1;

Creating a connection between Glue data catalog and ClickHouse

With your AWS Glue Catalog configured, you can authenticate and establish a connection between ClickHouse and AWS Glue Catalog.

AWS Access Key/Secret

Query

AWS Role

Query

Query the Glue data catalog using ClickHouse

Now that the connection is in place, you can start querying Glue:
Query
You can see above that some tables above aren’t Iceberg tables, for instance iceberg-benchmark.hitsparquet. You won’t be able to query these as only Iceberg is currently supported. To query a table:
Query
Backticks are required because ClickHouse doesn’t support more than one namespace.
To inspect the table DDL, run the following query:

Loading data from your Data Lake into ClickHouse

If you need to load data from Glue into ClickHouse, start by creating a local ClickHouse table:
Query
Then load the data from your Iceberg table:
Query
Last modified on June 19, 2026