Data Types Supported by Paimon Tables
Basic Data Types
Supported primitive types are defined in Table 1.
| Data Type | Description |
|---|---|
| BOOLEAN | True or false |
| INT | 32-bit signed integers. |
| BIGINT | 64-bit signed integers |
| FLOAT | 32-bit IEEE 754 floating points. |
| DOUBLE | 64-bit IEEE 754 floating points |
| DECIMAL(P, S) | Fixed-point decimals. P specifies the precision (the total number of digits), and S specifies the scale (the number of digits in the fractional part). The precision must be less than or equal to 38. |
| DATE | Calendar dates without the time zone or time |
| TIMESTAMP | Timestamps with microsecond precision, excluding the time zone |
| TIMESTAMP_LTZ | Timestamps with microsecond precision and the time zone |
| STRING | Arbitrary-length character sequences encoded with UTF-8 |
| BINARY | Arbitrary-length byte arrays |
| BYTES | Byte arrays |
Nested Data Types
- A struct is a tuple of typed values. Each field in the tuple is named and has an integer ID that is unique in the struct schema. Fields can be defined as either optional or mandatory.
- A list is an ordered collection of values with a certain element type. Elements can be of any type and can be optional or mandatory.
- A map is a collection of key-value pairs with a key type and a value type. Map keys are required and map values can be either optional or required.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot