Tipos globales a tipos de datos de Presto
El conector de iniciador asigna tipos de datos globales a tipos de datos de Presto.
Los tipos de datos globales marcados con un asterisco (*) solo están disponibles con Teradata Database 16.20 Feature Update 1 y versiones posteriores.
Tipo de datos globales | Tipo de datos de 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 (conjunto de caracteres 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 |
Otros | No se admite actualmente |
Tipos de datos de Presto a tipos globales
El conector de destino asigna tipos de datos de Presto a tipos de datos globales.
Tipo de datos de Presto | Tipo de datos globales |
---|---|
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 |
Otros | No se admite actualmente |
Consideraciones sobre tipos binarios y de cadena de Presto
El conector de Presto tiene un tamaño máximo restringido para los siguientes tipos de columna:
- BLOB – 2GB
- CLOB – 2GB-1
- VARCHAR – 64k
Las pruebas de Teradata han encontrado que Presto contiene la propiedad exchange.http-client.max-content-length, que debe establecerse lo suficientemente alta para que Presto pueda transferir una página de datos de gran tamaño. Hay un límite conocido en la versión de Presto actual que limita los datos CLOB y BLOB a 1,7 GB.