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
DecimalDecimalSynonyms: Numeric, Dec, Fixed.
BitUInt64
TinyIntInt8Supports unsigned. Compatibility alias: Int1.
SmallIntInt16Supports unsigned. Compatibility alias: Int2.
MediumInt, IntInt32Supports unsigned. Synonyms and compatibility aliases include Integer, Int3, Int4, MiddleInt.
BigIntInt64Supports unsigned. Compatibility alias: Int8.
SerialUInt64Alias for BigInt Unsigned Not Null AUTO_INCREMENT Unique.
YearInt16
TinyInt(1)BoolSynonyms: Bool, Boolean.
FloatFloat32Precision on ClickHouse may differ from MySQL during initial load due to text protocol. Synonym: Float4. 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. Synonyms: Double Precision, Real, Float8.
TinyText, Text, MediumText, LongTextString
TinyBlob, Blob, MediumBlob, LongBlobString
Char, VarcharStringSynonyms: Character, NChar, NVarchar, Character Varying, Char Varying, VarCharacter, NChar Varchar, NChar Varying, NChar VarCharacter, and National-prefixed forms.
Long, Long VarcharStringCompatibility aliases for MediumText. Additional MariaDB aliases: Long Char Varying, Long Character Varying, Long VarCharacter.
Binary, VarBinaryString
Long VarBinaryStringCompatibility alias for MediumBlob.
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.
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.