Once the ClickHouse Destination is enabled and events are streaming into an S3 bucket, follow these steps:
- Create a ClickHouse database specific to the merchant.
- Create the
canonical_eventstable. - Create a Materialized View for pushing events into that table.
- Create the ClickPipe for the merchant. (Note: The ClickPipe should define the raw event table schema.)
Code samples are provided in this repo.