自 2025 年 11 月 1 日起,Amazon Redshift 將不再支援建立新的 Python UDFs。如果您想要使用 Python UDFs,請在該日期之前建立 UDFs。現有的 Python UDFs將繼續如常運作。如需詳細資訊,請參閱部落格文章
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
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 Iceberg 文件中的 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 中資料類型的相關資訊,請參閱資料類型。