ClickHouse Data Types (Basic Types, Special Types, Array Types, Tuples, etc.)
Basic Types
- Integer: In ClickHouse, integers can be 32-bit or 64-bit.
- Decimal: ClickHouse supports the presence and position of decimal points.
- String: Strings in ClickHouse are sequences of Unicode characters.
Special Types
- dates and timestamps: ClickHouse supports
dateandtimestamptypes, which represent time and date respectively. - timeints and tinyintegers: ClickHouse supports integer types with lower precision.
- floats and decimals: ClickHouse supports the presence and position of decimal points.
Array Types
- Array: Arrays in ClickHouse are collections of values that can be variable-sized and contain elements of different data types.
Tuple Types
- Tuple: A tuple in ClickHouse is a collection with fixed size, typically used to represent structured data.
- tuple: The
tupletype in ClickHouse is similar to thetuplein Python; it represents an immutable and printable sequence.