Skip to main content
Last updated on

Iceberg to Doris Data Type Mapping

The following table describes how Doris 4.2 (branch-4.2) maps Iceberg external-table schemas when reading. Writes also depend on the target schema and supported write operations; the read mapping is not an automatic inverse mapping for writes.

Iceberg TypeDoris TypeComment
booleanboolean
integerint
longbigint
floatfloat
doubledouble
decimal(P, S)decimal(P, S)
datedate
timestamp (Timestamp without timezone)datetime(6)Mapped to datetime with precision 6
timestamptz (Timestamp with timezone)TIMESTAMPTZ(6)Since 4.1.5, this type always maps to TIMESTAMPTZ(6). Precision is capped at 6, so higher precision is lost.
fixed(N)VARBINARY(N)Since 4.1.5, the fixed binary width is preserved.
stringstring
binaryVARBINARYSince 4.1.5, this type always maps to VARBINARY.
uuidUUIDNative UUID in 4.2; Doris 4.1.5 maps this to VARBINARY(16).
structstruct (supported from version 2.1.3)
mapmap (supported from version 2.1.3)
listarray
timestamp_ns (without timezone)TIMESTAMP_NSPreserves nanosecond precision without session time-zone conversion.
timestamptz_ns (with timezone)UNSUPPORTEDTimezone-aware nanosecond timestamps are unsupported.
timeUNSUPPORTEDDoes not map to Doris TIME.
variantVARIANTIceberg V3 Variant; participating BEs must support Variant reads.
otherUNSUPPORTED

Usage Notes​

Child fields of complex types use the same mappings recursively. TIMESTAMPTZ represents an instant displayed in the session time_zone.

timestamp and timestamptz use microsecond precision. Only timezone-naive timestamp_ns maps to TIMESTAMP_NS. Its range is 1677-09-21 00:12:43.145224192 through 2262-04-11 23:47:16.854775807; values outside this range cannot be represented.

In DESCRIBE table_name, WITH_TIMEZONE in the Extra column identifies a timezone-aware source field.

Parquet writes to Iceberg UUID fields retain the UUID logical annotation, including nested fields.

Implementation reference: IcebergUtils.java (branch-4.2).