Example: Using the UNIQUE_NAMES Clause - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The schema output is different (displayed using 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"
		}]
	}
}