Basic Usage
String Types
t.string()
Variable length UTF-8 string.
t.fixedString(length)
Fixed length string, padded with null bytes.
t.uuid()
16-byte universally unique identifier.
Integer Types
t.int8()
Signed 8-bit integer (-128 to 127)
t.int16()
Signed 16-bit integer
t.int32()
Signed 32-bit integer
t.int64()
Signed 64-bit integer
t.int128()
Signed 128-bit integer (bigint)
t.int256()
Signed 256-bit integer (bigint)
t.uint8()
Unsigned 8-bit integer (0 to 255)
t.uint16()
Unsigned 16-bit integer
t.uint32()
Unsigned 32-bit integer
t.uint64()
Unsigned 64-bit integer
t.uint128()
Unsigned 128-bit integer (bigint)
t.uint256()
Unsigned 256-bit integer (bigint)
Float Types
t.float32()
32-bit floating point number.
t.float64()
64-bit floating point number (double precision).
t.decimal(precision, scale)
Fixed-point decimal number.
Boolean
t.bool()
Boolean value (true/false).
Date/Time Types
t.date()
Date in YYYY-MM-DD format.
t.date32()
Date in YYYY-MM-DD format with extended date range.
t.dateTime(timezone?)
DateTime in YYYY-MM-DD HH:MM:SS format.
t.dateTime64(precision?, timezone?)
DateTime with fractional seconds.Precision can be 0-9 (defaults to 3 for milliseconds).
Complex Types
t.array(element)
Array of elements of type T.
t.tuple(...elements)
Tuple of heterogeneous types.
t.map(keyType, valueType)
Dictionary/map type.
t.json()
Semi-structured JSON data.
Enum Types
t.enum8(...values)
Enumeration stored as Int8.
t.enum16(...values)
Enumeration stored as Int16.
Special Types
t.ipv4()
IPv4 address
t.ipv6()
IPv6 address
Aggregate Function States
t.simpleAggregateFunction(func, type)
For materialized views with simple aggregates (sum, min, max, any, anyLast).
t.aggregateFunction(func, type)
For materialized views with complex aggregates.