Example of foreign table definition with Latin character set | Teradata Vantage - Example: Creating a Foreign Table with a Payload Column that Uses the Latin Character Set - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

This example creates the foreign table sensordata where the Payload column is defined with the Latin character set.

CREATE MULTISET FOREIGN TABLE sensordata (
     Location VARCHAR(2048) CHARACTER SET UNICODE CASESPECIFIC,  
     Payload JSON(16776192) INLINE LENGTH 64000 CHARACTER SET LATIN) 
USING (   
       LOCATION ('/S3/YOUR-BUCKET.s3.amazonaws.com/data/logs')   
       PATHPATTERN ('$Var1/$Var2/$var3/$Var4/$date') 
)   
NO PRIMARY INDEX;