Example: Using the UNIQUE_NAMES Clause - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ DATASET Data Type

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1198-162K

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