These settings are available in system.settings and are autogenerated from source.
mysql_datatypes_support_level
Type
MySQLDataTypesSupport
Default
decimal,datetime64,date2Date32,geometry
Version history
| Version | Default value | Comment |
|---|---|---|
| 26.7 | decimal,datetime64,date2Date32,geometry | Map MySQL's concrete spatial types (LINESTRING, POLYGON, MULTILINESTRING, MULTIPOLYGON, MULTIPOINT) and the generic GEOMETRY type to the corresponding ClickHouse geometric types by default. The generic GEOMETRY column maps to the umbrella Geometry type; reading a value whose subtype has no ClickHouse counterpart (GEOMETRYCOLLECTION) throws at read time. |
| 26.3 | decimal,datetime64,date2Date32 | Enable modern MySQL type mappings by default. |
Defines how MySQL types are converted to corresponding ClickHouse types. A comma separated list in any combination of decimal, datetime64, date2Date32, date2String or geometry. All modern mappings (decimal, datetime64, date2Date32, geometry) are enabled by default.
decimal: convertNUMERICandDECIMALtypes toDecimalwhen precision allows it.datetime64: convertDATETIMEandTIMESTAMPtypes toDateTime64instead ofDateTimewhen precision is not0.date2Date32: convertDATEtoDate32instead ofDate. Takes precedence overdate2String.date2String: convertDATEtoStringinstead ofDate. Overridden bydatetime64.geometry: convert MySQL’s spatial types (LINESTRING,POLYGON,MULTILINESTRING,MULTIPOLYGON,MULTIPOINT) to the corresponding ClickHouse geometric types, and the genericGEOMETRYtype to the umbrellaGeometrytype.POINTis always converted toPointregardless of this option. Because a genericGEOMETRYcolumn can hold any subtype, reading a value whose subtype has no ClickHouse counterpart (GEOMETRYCOLLECTION) throws an exception at read time; columns declared asGEOMETRYCOLLECTIONmap toString. A nullable spatial column other thanPOINTalso maps toNullable(String), sincePointis the only geometric type that can be nested insideNullable. Every such string is a 4-byte SRID prefix followed by the WKB payload, as returned by MySQL. All of the above applies when the schema is inferred from the column types of a MySQL table; when the source is a query (thequery(...)argument of themysqltable function or theMySQLtable engine), MySQL reports every spatial result column as the genericGEOMETRYwithout the concrete subtype, so such columns — includingPOINT— map toString(Nullable(String)if nullable).
mysql_max_rows_to_insert
Type
UInt64
Default
65536
The maximum number of rows in MySQL batch insertion of the MySQL storage engine