17.10 - Viewing the Parquet Content Using READ_NOS - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Native Object Store Getting Started Guide

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1214-171K
Language
English (United States)
To view the content of your Parquet data, use the READ_NOS table operator..

The examples and results show a sample river flow data set. To use your own data, replace the table and column names, and authorization object.

  1. To run NOS-related commands, log on to the database as a user with the required privileges.
  2. View the content of the Parquet data:
    SELECT TOP 2 * FROM  (
    LOCATION='YOUR-OBJECT-STORE-URI'
    AUTHORIZATION=authorization_object
    ) AS d;

    See Variable Substitutions for Examples for the credentials and location values for the sample river flow data set.

    Your result will be similar to this:

         Location /S3/s3.amazonaws.com/td-usgs-public/PARQUETDATA/09396100/2018/07/13.parquet
      GageHeight2  1.37000000000000E 000
             Flow  5.39000000000000E 001
          site_no              9396100
         datetime 2018-07-13 00:00
    Precipitation  0.00000000000000E 000
       GageHeight  1.56000000000000E 000
    
         Location /S3/s3.amazonaws.com/td-usgs-public/PARQUETDATA/09396100/2018/07/15.parquet
      GageHeight2  1.98000000000000E 000
             Flow  1.60000000000000E 002
          site_no              9396100
         datetime 2018-07-15 00:00
    Precipitation  0.00000000000000E 000
       GageHeight  1.98000000000000E 000

    The output is displayed vertically for readability.