Skip to main content

ClickHouse

Overview​

Mitzu connects to ClickHouse using username/password authentication.

warning
If the ClickHouse is hosted by you then please make sure the 99.81.21.134 ip is allowed inbound traffic to the specified port.

Supported data types​

Mitzu will map the types of the data warehouse based on the following table:

Mitzu typeData warehouse type
StringString, FixedString
NumberUInt8, UInt16, UInt32, UInt64, UInt128, UInt256, Int8, Int16, Int32, Int64, Int128, Int256, Float32, Float64
BooleanBoolean
DatetimeDate, Date32, DateTime, DateTime64
MapMap, JSON
StructTuple
ArrayArray

info
All unrecognized types will be handled as strings.

JSON columns​

Mitzu reads columns of ClickHouse's native JSON type (ClickHouse 25.3 or later) the same way it reads Map columns. Indexing samples the column and lists every path it finds as a property of the event it belongs to, so properties.geo.city shows up as its own property. Paths holding integers or decimals become numbers, true/false values become booleans, ISO date strings become datetimes, arrays become array properties whose elements are compared as text, and everything else becomes a string.

ClickHouse doesn't allow JSON columns in a view, so keep them in a table. The older experimental Object('json') type isn't supported. Convert those columns to JSON first.

Configure the connection details in Mitzu​

image

Please fill out the form with your connection details.

For an encrypted connection, use port 9440 or 8443 and check the Secure connection (SSL) checkbox. For an unencrypted connection (not recommended), use port 9000 or 8123.

note

When entering URLs in our system, please include only the "Host" portion, omitting the protocol scheme such as https.

note

The minimum supported ClickHouse server version is 23.3.13.6.

tip

Funnels and retention with Every event attribution run noticeably faster on ClickHouse 25.3 or newer. On older servers Mitzu switches those queries to a merge join so they stay within memory, which makes them slower when some users have thousands of events.

You can configure the connection query parameters. To do so, click on theAdvanced settings section and enter your parameters into theURL Query Params textbox. You must write each parameter in a new line in the <parameter name>=<parameter value> format.

Click the Test connection button to check if Mitzu can connect to your data warehouse using the entered values.

warning
Mitzu will try to connect to your data warehouse and execute a SELECT 1;command. You may need to grant further permission Mitzu to see and query your data tables.

To save the settings, click the Test connection & Save button.

Next steps​

Once the connection is tested an saved the event end dimension tables can be configured. Please follow the setting up event tables guide.