16.20 - storage_format Schema - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24
storage_format
Storage format of the DATASET type for which to show the schema.
SYSUDTLIB
Name of the target database containing the schema.
schema_name
Name of schema.

Example: SHOW Avro SCHEMA

This example shows the schema for the CREATE storage_format SCHEMA example:
SHOW Avro SCHEMA chemDatasetSchema;
> 
CREATE Avro SCHEMA chemDatasetSchema AS
'{
	"namespace": "example.avro",
 	"type": "record",
 	"name": "User",
 	"fields": [
     		{"name": "name", "type": "string"},
    		{"name": "favorite_number",  "type": ["int", "null"]},
     		{"name": "favorite_color", "type": ["string", "null"]}
 	 ]
	}';