diff --git a/docs/src/main/sphinx/connector/clickhouse.rst b/docs/src/main/sphinx/connector/clickhouse.rst index f2ccd14a3c90..46106f1e1a9d 100644 --- a/docs/src/main/sphinx/connector/clickhouse.rst +++ b/docs/src/main/sphinx/connector/clickhouse.rst @@ -128,6 +128,29 @@ in create table statement. ``ReplicatedMergeTree`` engine is not yet supported. Type mapping ------------ +The data type mappings are as follows: + +================= =============== =================================================================================================== +ClickHouse Trino Notes +================= =============== =================================================================================================== +``Int8`` ``TINYINT`` ``TINYINT``, ``BOOL``, ``BOOLEAN`` and ``INT1`` are aliases of ``Int8`` +``Int16`` ``SMALLINT`` ``SMALLINT`` and ``INT2`` are aliases of ``Int16`` +``Int32`` ``INTEGER`` ``INT``, ``INT4`` and ``INTEGER`` are aliases of ``Int32`` +``Int64`` ``INTEGER`` ``BIGINT`` is an alias of ``Int64`` +``Float32`` ``REAL`` ``FLOAT`` is an alias of ``Float32`` +``Float64`` ``DOUBLE`` ``DOUBLE`` is an alias of ``Float64`` +``Decimal`` ``DECIMAL`` +``FixedString`` ``VARBINARY`` Enabling ``clickhouse.map-string-as-varchar`` config property changes the mapping to ``VARCHAR`` +``String`` ``VARBINARY`` Enabling ``clickhouse.map-string-as-varchar`` config property changes the mapping to ``VARCHAR`` +``Date`` ``DATE`` +``DateTime`` ``TIMESTAMP`` +``IPv4`` ``VARCHAR`` +``IPv6`` ``VARCHAR`` +``Enum8`` ``VARCHAR`` +``Enum16`` ``VARCHAR`` +``UUID`` ``UUID`` +================= =============== =================================================================================================== + .. include:: jdbc-type-mapping.fragment .. _clickhouse-pushdown: