muscles

Data types

The column types. A column definition accepts any of the words in the second column, in any letter case. The third column is the name that SHOW COLUMNS and system.columns report.

TypeWords in a column definitionReported nameDescription
int64int64, int, bigint, integerint64Signed 64-bit integer. The words int and integer also mean 64 bits.
float64float64, float, doublefloat6464-bit floating-point number.
varcharvarchar, string, textvarcharVariable-length string of bytes.
timestamptimestamp, datetime64timestampPoint in time with nanosecond precision in UTC, stored as signed 64-bit nanoseconds since the Unix epoch.
array_int64array_int64array_int64Array of Int64 values.
array_float64array_float64array_float64Array of Float64 values.
array_varchararray_varchararray_varcharArray of strings.
UInt8UInt8UInt8Unsigned 8-bit integer.
UInt16UInt16UInt16Unsigned 16-bit integer.
UInt32UInt32UInt32Unsigned 32-bit integer.
UInt64UInt64UInt64Unsigned 64-bit integer.
BoolBool, booleanBoolBoolean value, stored as 0 or 1.
Int8Int8, tinyintInt8Signed 8-bit integer.
Int16Int16, smallintInt16Signed 16-bit integer.
Int32Int32Int32Signed 32-bit integer.
Float32Float32, realFloat3232-bit floating-point number.
DateDateDateCalendar date, stored as days since the Unix epoch.
DateTimeDateTimeDateTimePoint in time with second precision in UTC, stored as seconds since the Unix epoch.
FixedStringFixedString, fixed_stringFixedStringString of exactly N bytes, written FixedString(N). Shorter values are padded with zero bytes and longer values are rejected.
IPv4IPv4IPv4IPv4 address, stored as an unsigned 32-bit number and written in dotted form.
Enum8Enum8Enum8Enumeration of named values stored as a signed 8-bit integer, written Enum8('name' = value, ...).
Enum16Enum16Enum16Enumeration of named values stored as a signed 16-bit integer, written Enum16('name' = value, ...).
Int128Int128Int128Signed 128-bit integer.
UInt128UInt128UInt128Unsigned 128-bit integer.
UUIDUUIDUUIDUniversally unique identifier, written as 32 hexadecimal digits in the 8-4-4-4-12 form.
IPv6IPv6IPv6IPv6 address, stored as 128 bits.
map_i64_i64map_i64_i64Map(Int64, Int64)Map from Int64 keys to Int64 values.
map_i64_f64map_i64_f64Map(Int64, Float64)Map from Int64 keys to Float64 values.
map_i64_strmap_i64_strMap(Int64, String)Map from Int64 keys to string values.
map_str_i64map_str_i64Map(String, Int64)Map from string keys to Int64 values.
map_str_f64map_str_f64Map(String, Float64)Map from string keys to Float64 values.
map_str_strmap_str_strMap(String, String)Map from string keys to string values.
AggregateFunctionAggregateFunction, agg_stateAggregateFunctionIntermediate state of an aggregate function, written AggregateFunction(name, argument types).
array_float32array_float32array_float32Array of Float32 values, such as an embedding vector.
Decimal32Decimal32Decimal32Fixed-point number with up to 9 digits, written Decimal(P, S) with P of at most 9.
Decimal64Decimal64Decimal64Fixed-point number with up to 18 digits, written Decimal(P, S) with P of at most 18.