Skip to main content

Connecting ClickHouse to Omni

In this guide, you'll learn how to connect your ClickHouse database to Omni.

Requirements

To follow the steps in this guide, you'll need:

  • Organization Admin permissions in Omni
  • Permissions in ClickHouse that allow you to access connection credentials

Step 1: Retrieve ClickHouse connection details

  1. In ClickHouse, navigate to the warehouse you want to connect to Omni.

  2. Click Connect in the side navigation.

  3. A dialog like the following will display:

The information you need is highlighted in the above image, specifically:

  • Username - In the above image, the username is ClickHouse's default (default), but this may differ for you
  • Password
  • Host - This is a string similar to https://<some-string>.eastus2.azure.clickhouse.cloud
  • Port - In the above image, the port is 8443

Keep this information handy - you'll need it in the following step.

Step 2: Create the connection in Omni

  1. In Omni, click Settings > Connections.

  2. Click Add connection.

  3. Click ClickHouse.

  1. Fill in the fields as follows:

    • Display name - Required. Enter a name for the connection, which will display in the connections list in Omni.

    • Host - Required. Enter the host address for the database. This is the host address you retrieved from ClickHouse in Step 1.

    • Post - Required. Enter the port used by the database. This is the port you retrieved from ClickHouse in Step 1.

    • Default schema - Required. Enter the name of the default schema for the database.

    • Include schemas - To only include specific schemas, enter the names of the schemas as a comma-separated list. Leaving this field blank will allow Omni to access all schemas in the database.

    • Username - Required. Enter the username of the database user you want Omni to use. This is the ClickHouse username you retrieved in Step 1.

    • Password - Required. Enter the password for the database user. This is the ClickHouse password you retrieved in Step 1.

    • Trust Server Certificate - Check this option if you don't want Omni to validate the server's SSL/TLS certificate.

    • Schema for CSV Upload - Enter the name of the Schema where CSV uploads will be stored. If left blank, you'll still be able to upload CSVs, but they won't be pushed to the database.

    • Database Timezone - Required. Select the timezone used by the database.

    • Query timezone - Required. If specified, data will be converted from the Database timezone to this timezone when querying. Refer to the Converting timezone data guide for more information.

    • Allow User-Specific Timezones - Check this option to allow individual users' Query timezone settings to be used as the query timezone for the connection.

  2. When finished, click Create connection.

What's next?

Now that ClickHouse is set up, you can: