Datatype mappings

Apache Kudu connector data type mappings reference provides the bidirectional data type conversions between Apache Kudu and Trino.

Data type mappings between Apache Kudu and Trino

The following table shows the data type mappings between Apache Kudu and Trino:

Kudu type Trino type Notes
BOOL BOOLEAN Maps bidirectionally.
INT8 TINYINT Maps bidirectionally.
INT16 SMALLINT Maps bidirectionally.
INT32 INTEGER Maps bidirectionally.
INT64 BIGINT Maps bidirectionally.
FLOAT REAL Maps bidirectionally.
DOUBLE DOUBLE Maps bidirectionally.
DECIMAL(p,s) DECIMAL(p,s) Supported for Kudu server version 1.7.0 or higher.
STRING VARCHAR Optional maximum length is lost when mapping to Kudu.
BINARY VARBINARY Maps bidirectionally.
DATE DATE Maps bidirectionally.
UNIXTIME_MICROS TIMESTAMP(3) Microsecond resolution in Kudu is reduced to millisecond resolution in Trino.