Example: NOSREAD_SCHEMA with Parquet Schema - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
vjt1596846980081.ditamap
dita:ditavalPath
vjt1596846980081.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantageā„¢

If not already done, create the authorization object. See Example: Create an Authorization Object.

Run the READ_NOS command:

SELECT * FROM (
LOCATION='/s3/td-usgs-public.s3.amazonaws.com/PARQUETDATA/'
AUTHORIZATION=MyAuthObj
RETURNTYPE='NOSREAD_SCHEMA'
) AS d;

Your result will be similar to the following:

ColPosition      1
        Name GageHeight2
TdatDataType FLOAT
PhysicalType DOUBLE
 LogicalType NONE
   Precision           0
       Scale           0
   MinLength           0
   MaxLength           0
   NullFound    1
    FileType parquet
    Location /S3/s3.amazonaws.com/td-usgs-public/PARQUETDATA/

 ColPosition      2
        Name Flow
TdatDataType FLOAT
PhysicalType DOUBLE
 LogicalType NONE
   Precision           0
       Scale           0
   MinLength           0
   MaxLength           0
   NullFound    1
    FileType parquet
    Location /S3/s3.amazonaws.com/td-usgs-public/PARQUETDATA/

The output is displayed vertically for readability.