@@ -6,26 +6,26 @@ description: 'Page describing MySQL ClickPipe datatype mapping from MySQL to Cli
66
77Here is the supported data-type mapping for the MySQL ClickPipe:
88
9- | MySQL Type | ClickHouse type | Notes |
10- | -------------------------------------------------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------- |
11- | Enum | LowCardinality(String) | |
12- | Set | String | |
13- | Decimal | Decimal | |
14- | TinyInt | Int8 | Supports unsigned. |
15- | SmallInt | Int16 | Supports unsigned. |
16- | MediumInt, Int | Int32 | Supports unsigned. |
17- | BigInt | Int64 | Supports unsigned. |
18- | Year | Int16 | |
19- | TinyText, Text, MediumText, LongText | String | |
20- | TinyBlob, Blob, MediumBlob, LongBlob | String | |
21- | Char, Varchar | String | |
22- | Binary, VarBinary | String | |
23- | TinyInt(1) | Bool | |
24- | JSON | String | MySQL only; MariaDB ` json ` is just an alias for ` text ` with a constraint. |
25- | Geometry & Geometry Types | String | WKT (Well-Known Text). WKT may suffer from small precision loss. |
26- | Vector | Array(Float32) | MySQL only; MariaDB is adding support soon. |
27- | Float | Float32 | Precision on ClickHouse may differ from MySQL during initial load due to text protocols. |
28- | Double | Float64 | Precision on ClickHouse may differ from MySQL during initial load due to text protocols. |
29- | Date | Date32 | |
30- | Time | DateTime64(6) | The date portion is Unix epoch. |
31- | Datetime, Timestamp | DateTime64(6) | |
9+ | MySQL Type | ClickHouse type | Notes |
10+ | --------------------------| -----------------------| -------------------------------------------------------------------------------------- |
11+ | Enum | LowCardinality(String) | |
12+ | Set | String | |
13+ | Decimal | Decimal | |
14+ | TinyInt | Int8 | Supports unsigned.|
15+ | SmallInt | Int16 | Supports unsigned.|
16+ | MediumInt, Int | Int32 | Supports unsigned.|
17+ | BigInt | Int64 | Supports unsigned.|
18+ | Year | Int16 | |
19+ | TinyText, Text, MediumText, LongText | String | |
20+ | TinyBlob, Blob, MediumBlob, LongBlob | String | |
21+ | Char, Varchar | String | |
22+ | Binary, VarBinary | String | |
23+ | TinyInt(1) | Bool | |
24+ | JSON | String | MySQL only; MariaDB ` json ` is just an alias for ` text ` with a constraint. |
25+ | Geometry & Geometry Types | String | WKT (Well-Known Text). WKT may suffer from small precision loss. |
26+ | Vector | Array(Float32) | MySQL only; MariaDB is adding support soon. |
27+ | Float | Float32 | Precision on ClickHouse may differ from MySQL during initial load due to text protocol. |
28+ | Double | Float64 | Precision on ClickHouse may differ from MySQL during initial load due to text protocol. |
29+ | Date | Date32 | 00 day/month mapped to 01. |
30+ | Time | DateTime64(6) | Time offset from unix epoch.|
31+ | Datetime, Timestamp | DateTime64(6) | 00 day/month mapped to 01. |
0 commit comments