
iceberg 0.11.1支持的数据类型如下,这些东西在iceberg官网都有,只是有时候官网打不开,所以记录下:
Type | Description | Notes |
|---|---|---|
boolean | 布尔型,True or false | |
int | 32位有符号整形 | Can promote to long |
long | 64位有符号整形 | |
float | 单精度浮点型 | Can promote to double |
double | 双精度浮点型 | |
decimal(P,S) | decimal | Scale is fixed and precision must be 38 or less |
date | Calendar date without timezone or time | |
time | Time of day without date, timezone | Stored as microseconds |
timestamp | Timestamp without timezone | Stored as microseconds |
timestamptz | Timestamp with timezone | Stored as microseconds |
string | Arbitrary-length character sequences | Encoded with UTF-8 |
fixed(L) | Fixed-length byte array of length L | |
binary | Arbitrary-length byte array | |
struct<...> | A record with named fields of any data type | |
list<E> | A list with elements of any data type | |
map<K, V> | A map with keys and values of any data type |
参考文章: