グローバル型から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 | 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_TimeWithTimeZone | Time with time zone |
G_Timestamp | Timestamp |
G_TimestampWithTimeZone | Timestamp with time zone |
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 hour | G_IntervalHour |
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.7 GBに制限する既知の制限があります。