Skip to content

Commit d7ce7c0

Browse files
authored
Merge pull request #4030 from ClickHouse/mysql-clickpipes-datetime00
mysql clickpipes: add note that 00 in day/month is mapped to 01 in clickhouse
2 parents e5a124a + 70553cf commit d7ce7c0

File tree

1 file changed

+23
-23
lines changed
  • docs/integrations/data-ingestion/clickpipes/mysql

1 file changed

+23
-23
lines changed

docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ description: 'Page describing MySQL ClickPipe datatype mapping from MySQL to Cli
66

77
Here 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

Comments
 (0)