从 2025 年 11 月 1 日起,Amazon Redshift 将不再支持创建新的 Python UDF。如果您想要使用 Python UDF,请在该日期之前创建 UDF。现有的 Python UDF 将继续正常运行。有关更多信息,请参阅博客文章
Apache Iceberg 表支持的数据类型
本主题介绍 Redshift Spectrum 可以从采用 Apache Iceberg 格式的表中读取的受支持的数据类型。
Amazon Redshift 可以查询包含以下数据类型的 Iceberg 表:
binary boolean date decimal double float int list long map string struct timestamp without time zone
有关 Iceberg 数据类型的更多信息,请参阅 Apache 文档中的 Schemas for Iceberg
下表显示了 Amazon Redshift 数据类型与 Iceberg 表数据类型之间的关系。
| Iceberg 类型 | Amazon Redshift 类型 | 备注 |
|---|---|---|
boolean |
boolean |
|
| - | tinyint |
Amazon Redshift 中的 Iceberg 表不支持。 |
| - | smallint |
Amazon Redshift 中的 Iceberg 表不支持。 |
int |
int |
在 Amazon Redshift SQL 语句中,此类型为 INTEGER。 |
long |
bigint |
|
double |
double precision |
|
float |
real |
|
decimal(P, S) |
decimal(P, S) |
P 表示精度,S 表示小数位数。 |
| - | char |
Redshift Spectrum 中的 Iceberg 表不支持。 |
string |
string |
在 Amazon Redshift SQL 语句中,此类型为 VARCHAR。 |
binary |
binary |
|
date |
date |
|
time |
- | |
timestamp |
timestamp |
|
timestamptz |
- |
|
list<E> |
array |
|
map<K,V> |
map |
|
struct<...> |
struct |
|
fixed(L) |
- | Redshift Spectrum 目前不支持 fixed(L) 类型。 |
有关 Amazon Redshift 中的数据类型的更多信息,请参阅数据类型。