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

DATASET Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
des1556232910526.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1198
lifecycle
previous
Product Category
Teradata Vantageā„¢

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"
		}]
	}
}