17.10 - Example: Using the UNIQUE_NAMES Clause - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - DATASET Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1198-171K
Language
English (United States)

The schema output is different (displayed via the getSchema method of the DATASET type).

SELECT data.getSchema() FROM DATASET_PUBLISH
(
	ON (SELECT * FROM employeeTable)	 
	USING UNIQUE_NAMES('Y')
) AS avroFiles;

data.getSchema()
{
	"type": "array",
	"items": {
		"type": "record",
		"name": "rec_0_1448383894",
		"fields": [{
			"name": "empID",
			"type": "int"
		},
		{
			"name": "empName",
			"type": "string"
		},
		{
			"name": "empDept",
			"type": "string"
		}]
	}
}