Example: Using the UNIQUE_NAMES Clause - Analytics Database - Teradata Vantage

DATASET Data Type

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
bka1628112240653.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ekk1458586304878
lifecycle
latest
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;

Result:

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