Overview
Stigg’s integration with ClickHouse allows you to export your product catalog, customer, and subscription data to ClickHouse for high-performance analytical queries.Stigg’s native data export integrations are included in the Scale plan, and are also available as an optional add-on to the Growth plan. See Stigg’s pricing for more details.
View the full entity schema
See every table and column exported to your destination, organized by entity group.
Setting up the integration
Prerequisites
- A ClickHouse instance (self-hosted or ClickHouse Cloud) with administrative access
- An S3 or GCS bucket for staging data before it’s loaded into ClickHouse (or use Implicit staging if credentials are already configured on your ClickHouse instance)
If your security posture requires IP allowlisting, Stigg connects from a static IP:
35.192.85.117/32 (US Cloud) or 104.199.49.149/32 (EU Cloud). For private or self-hosted deployments, contact Stigg support for the egress IP.1
Allow network access
Whitelist Stigg’s static IP in your firewall or security group:
- Incoming connections to your ClickHouse host and port (typically
9440) from Stigg’s static IP - Outgoing connections from ports
1024-65535to Stigg’s static IP
2
Create a database user
Connect to your ClickHouse instance with a SQL client and create a user for Stigg:Grant the permissions Stigg needs to stage and load data:
Passwords may only contain alphanumeric characters, dashes, and underscores.
3
Configure the staging bucket
Choose an S3 or GCS bucket for staging, or select Implicit if credentials are already configured as environment variables on your ClickHouse instance. Optionally add a lifecycle rule to delete staged objects after 2 days.
For ClickHouse Cloud using S3 role-based access, add a trust policy on your S3 role allowing ClickHouse’s IAM ARN to assume it:Find the ARN in ClickHouse Cloud under Settings > Network security information > Service role ID.
4
Connect Stigg with ClickHouse
In Stigg, navigate to Integrations > Apps > ClickHouse.Enter the following information in the connection form:
Click Test & connect.
5
Select entities to export
After entering your connection details, expand the Entities to export section to choose which entity groups to include in the sync. All groups are selected by default.See Exported entities for a description of each group.
Querying exported data
Stigg’s tables in ClickHouse use theReplacingMergeTree engine, which deduplicates rows asynchronously in the background. Use the FINAL keyword to force deduplication at query time:
