Prerequisites for integrating with ClickHouse
Any ClickHouse user account with permissions granted to access the relevant databases and tables. For more information about credentials in Validio, see Credentials. For more information about access rights, see ClickHouse documentation. You can use the following SQL script to set up a ClickHouse User and Role and grant the necessary permissions for the Source in Validio.- The user profile has readonly permissions, which means that the user can only execute read queries (such as SELECT).
- The role is also granted remote permissions to fetch the query logs needed to build the lineage relationships.
SQL
Relative entropy validators may require more resources to execute on ClickHouse
dev environments. For example, if you plan to use a relative entropy validator, you might see errors due to limited RAM.Add a ClickHouse credential
To add a credential for ClickHouse,- Navigate to Credentials and click + New credential.
- Under Namespace, select a namespace where the resources will be created.
- For Credential Type, select ClickHouse Credential.
- Fill in the Configuration parameter fields. Refer to the ClickHouse Credential Parameters table.
- (Optional) Click Test credential to validate that Validio can successfully access the ClickHouse account. If validation fails, check that you provided the correct parameter values.
- (Optional) Check Use for catalog and schema checks to automatically discover assets from this credential and add them to the Catalog page.
- Click Create credential.
ClickHouse credential parameters
Add a ClickHouse source
To add a source for ClickHouse,- Navigate to Sources and click + New source.
- Under Source type, select ClickHouse.
- Under Config,
- Select the valid Credential or create a new credential to authenticate your connection to the data warehouse.
- You have two options for specifying the dataset and tables to monitor:
- Select an existing table — Enter the Database, Schema, and Table to specify where the data comes from. Selecting more than one table will create a new source for each table.
- Use Custom SQL — Write a valid SQL query to specify the tables to monitor.
- Set the Polling schedule, which is how frequently the validators on the source will check for changes.
- Under Schema, click Continue to automatically infer the schema fields from the tables you selected. If you select many tables, this operation can take a few minutes to complete.
- Under Source details,
- Add Tags to help group related sources or to use for routing notifications.
- Add an Owner who will be the contact for incident notifications.
- Assign a Priority, which indicates the importance of incidents detected on this source.
- Click Continue to create the source. Source names are generated automatically and will be displayed when the source creation completes. If there are more than 5 sources, you will see the names for the first five and a count of the remaining sources.