本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Athena 可以查詢包含下列資料類型的 Iceberg 資料表:
binary boolean date decimal double float int list long map string struct timestamp without time zone
如需有關 Iceberg 資料表類型的詳細資訊,請參閱 Apache 文件中的 Iceberg 結構描述頁
下表顯示 Athena 資料類型與 Iceberg 資料表資料類型之間的關係。
Iceberg 類型 | Athena 類型 | 備註 |
---|---|---|
boolean |
boolean |
|
- | tinyint |
Athena 中的 Iceberg 資料表不支援。 |
- | smallint |
Athena 中的 Iceberg 資料表不支援。 |
int |
int |
在 Athena DML 陳述式中,此類型是 INTEGER 。 |
long |
bigint |
|
double |
double |
|
float |
float |
|
decimal(P, S) |
decimal(P, S) |
P 是總位數,S 是小數部分的位數。 |
- | char |
Athena 中的 Iceberg 資料表不支援。 |
string |
string |
在 Athena DML 陳述式中,此類型是 VARCHAR 。 |
binary |
binary |
|
date |
date |
|
time |
- | Athena Iceberg DDL 陳述式僅支援使用 CREATE TABLE 之類的 Iceberg 時間戳記 (不含時區),但可透過 Athena 查詢所有時間戳記類型。 |
timestamp |
timestamp |
|
timestamptz |
timestamptz |
|
list<E> |
array |
|
map<K,V> |
map |
|
struct<...> |
struct |
|
fixed(L) |
- | Athena 目前不支援使用 fixed(L) 類型。 |
如需有關 Athena 中資料類型的詳細資訊,請參閱Amazon Athena 中的資料類型。