全局类型到 Presto 数据类型
发起程序连接器将全局数据类型映射到 Presto 数据类型。
用星号 (*) 表示的全局数据类型仅适用于 Teradata Database 16.20 Feature Update 1 及更高版本。
全局数据类型 | Presto 数据类型 |
---|---|
G_Array | Array |
G_Array_VC_UTF16 / G_Array_VC_Latin * | Array |
G_Bigint | Bigint |
G_Blob | Varbinary |
G_Boolean | Boolean |
G_Byte | Varbinary |
G_ByteInt | Tinyint |
G_Char_UTF8/Latin | Char(n) |
G_Char_UTF16 | Char(n) |
G_Clob_UTF16/Latin | Varchar |
G_Date | Date |
G_Decimal | Decimal |
G_Double | Double |
G_Float | Real |
G_Integer | Integer |
G_JSON_UTF16 / G_JSON_Latin * | Varchar |
G_Longvargraphic | Varchar(n) |
G_Map | Varchar (Unicode 字符集) |
G_Number | Decimal |
G_Row | Row |
G_SmallInt | Smallint |
G_STGeometry * | Varchar |
G_Time | Time |
G_Timestamp | Timestamp |
G_Varbyte | Varbinary |
G_Varchar_Latin | Varchar(n) |
G_Varchar_UTF8 | Varchar(n) |
G_Varchar_UTF16 | Varchar(n) |
G_Varchargraphic | Varchar(n) |
G_XML * | Varchar |
其他 | 当前不支持 |
Presto 数据类型到全局类型
目标连接器将 Presto 数据类型映射到全局数据类型。
Presto 数据类型 | 全局数据类型 |
---|---|
Array | G_Array |
Bigint | G_BigInt |
Boolean | Boolean |
Char(n) | G_Char_UTF16 |
Date | G_Date |
Decimal | G_Decimal |
Double | G_Double |
Integer | G_Integer |
Interval day to second | G_IntervalDayToSecond |
Interval year to month | G_IntervalYearToMonth |
Json | G_Json |
Map | G_Map |
Row | G_Row |
Smallint | G_SmallInt |
Time | G_Time |
Time with time zone | G_TimeWithTimeZone |
Timestamp | G_TimeStamp |
Timestamp with time zone | G_TimeStampWithTimeZone |
Tinyint | G_Tinyint |
Varbinary | G_Blob |
Varchar | G_Clob_UTF16/Latin |
Varchar(n) | G_Varchar_UTF16 |
其他 | 当前不支持 |
Presto String 和 Binary 数据类型注意事项
Presto 连接器的以下列类型的大小上限受限:
- BLOB – 2GB
- CLOB – 2GB-1
- VARCHAR – 64k
Teradata 测试发现,Presto 包含 exchange.http-client.max-content-length 属性,需要将该属性设置得足够高以便 Presto 传输大型数据页。当前 Presto 版本存在已知限制,即 CLOB 和 BLOB 数据的大小上限为 1.7GB。