17.10 - Parquet File - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

CREATE FOREIGN TABLE Statement

CREATE FOREIGN TABLE riverflow_parquet
USING ( LOCATION ('/s3/td-usgs-public.s3.amazonaws.com/PARQUETDATA/') );

SHOW TABLE Statement

Run the following:

SHOW TABLE riverflow_parquet;

Result:

CREATE MULTISET FOREIGN TABLE NOS_USR.riverflow_parquet ,FALLBACK ,
     MAP = TD_MAP1
     (
      Location VARCHAR(2048) CHARACTER SET UNICODE CASESPECIFIC,
      GageHeight2 FLOAT,
      Flow FLOAT,
      site_no BIGINT,
      datetime VARCHAR(16) CHARACTER SET UNICODE NOT CASESPECIFIC,
      Precipitation FLOAT,
      GageHeight FLOAT)
USING
(
      LOCATION  ('/s3/td-usgs-public.s3.amazonaws.com/PARQUETDATA/')
      MANIFEST  ('FALSE')
      PATHPATTERN  ('$var1/$var2/$var3/$var4/$var5')
      STOREDAS  ('PARQUET')
)
NO PRIMARY INDEX 
PARTITION BY COLUMN ADD 65525;