JSONファイル - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQLデータ定義言語 構文規則および例

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
2021年7月
Language
日本語
Last Update
2021-09-23
dita:mapPath
ja-JP/spp1591731285373.ditamap
dita:ditavalPath
ja-JP/wrg1590696035526.ditaval
dita:id
B035-1144
Product Category
Software
Teradata Vantage

CREATE FOREIGN TABLE文

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

SHOW TABLE文

次を実行します。

SHOW TABLE riverflow_json;

結果:

CREATE MULTISET FOREIGN TABLE NOS_USR.riverflow_json ,FALLBACK ,
     MAP = TD_MAP1
     (
      Location VARCHAR(2048) CHARACTER SET UNICODE CASESPECIFIC,
      Payload JSON(16776192) INLINE LENGTH 64000 CHARACTER SET LATIN)
USING
(
      LOCATION  ('/s3/td-usgs-public.s3.amazonaws.com/JSONDATA/')
      MANIFEST  ('FALSE')
      PATHPATTERN  ('$var1/$var2/$var3/$var4/$var5')
      ROWFORMAT  ('{"record_delimiter":"\n","character_set":"LATIN"}')
      STOREDAS  ('TEXTFILE')
)
NO PRIMARY INDEX ;