Sample External JSON Data with READ_NOS | Native Object Store | Teradata Vantage - 17.05 - Sampling External Data in Place Using READ_NOS - Teradata Database

Teradata Vantageā„¢ - Native Object Store Getting Started Guide

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.05
created_date
January 2021
category
Programming Reference
featnum
B035-1214-175K

Preview the contents of an external object store by using the READ_NOS table operator. In this example, the payload column contains the data.

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. Sample the data in place:
    SELECT TOP 2 payload.* FROM READ_NOS_FM (
    ON ( SELECT CAST( NULL AS JSON ) )
    USING
    LOCATION('YOUR-STORAGE-ACCOUNT')
    ) AS D;

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

    Result:

    Payload.*
    -------------------------------------------------------------------
    ["09380000","2018-07-01 00:00","10000","8.65","11.6","662","0.00"]
    ["09380000","2018-06-28 00:00","15900","9.91","11.0","671","0.00"]