Skip to main content
Skip to main content
Edit this page

Supported data types

Here is the supported data-type mapping for the MySQL ClickPipe:

MySQL TypeClickHouse typeNotes
EnumLowCardinality(String)
SetString
DecimalDecimal(76,38)Values exceeding 38 integer digits are ingested as zero.
BitUInt64
TinyIntInt8Supports unsigned.
SmallIntInt16Supports unsigned.
MediumInt, IntInt32Supports unsigned.
BigIntInt64Supports unsigned.
SerialUInt64
YearInt16
TinyInt(1)Bool
FloatFloat32Precision on ClickHouse may differ from MySQL during initial load due to text protocol. Float(p) maps to Float32 for p <= 24 and Float64 for p >= 25.
DoubleFloat64Precision on ClickHouse may differ from MySQL during initial load due to text protocol.
TinyText, Text, MediumText, LongTextString
TinyBlob, Blob, MediumBlob, LongBlobString
Char, VarcharString
Long, Long VarcharString
Binary, VarBinaryString
Long VarBinaryString
JSONStringMySQL only; MariaDB json is just an alias for text with a constraint.
Geometry & Geometry TypesStringWKT (Well-Known Text). WKT may suffer from small precision loss.
UUIDUUIDMariaDB only. Columns added during CDC are added as String holding the raw 16 bytes.
INET4, INET6StringMariaDB only.
VectorArray(Float32)MySQL only; MariaDB is adding support soon.
Char Byte, RawStringMariaDB/Oracle-mode aliases for binary types.
Clob, Varchar2, XMLTypeStringMariaDB/Oracle-mode aliases for text types.
NumberDecimalMariaDB/Oracle-mode alias for Decimal.
DateDate3200 day/month mapped to 01.
TimeDateTime64(6)Time offset from unix epoch.
Datetime, TimestampDateTime64(6)00 day/month mapped to 01.