Athena 中支持的 Iceberg 表数据类型。 - Amazon Athena
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

Athena 中支持的 Iceberg 表数据类型。

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 - CREATE TABLE 等 Athena Iceberg DDL 语句只支持 Iceberg 时间戳(不带时区),但是所有时间戳类型都可以通过 Athena 查询。
timestamp timestamp
timestamptz timestamptz
list<E> array
map<K,V> map
struct<...> struct
fixed(L) - Athena 目前不支持 fixed(L) 类型。

有关 Athena 中数据类型的更多信息,请参阅 Amazon Athena 中的数据类型