ARRAY Type Element Reference vs. JSON Type Array Reference - Advanced SQL Engine - Teradata Database

JSON Data Type

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

When parsing a request that features syntax matching both a Teradata Vantage ARRAY type element reference and a JSON type array reference, the following logic is employed:

  1. The syntax is first treated as an element reference on a Teradata Vantage ARRAY type.
  2. If it is determined that the source is not an ARRAY type, TeradataVantage checks to see if it is an instance of the JSON type.
  3. If it is a JSON type instance, Vantage interprets the syntax as a JSON type array reference.
  4. If it is not a JSON type instance, an error is returned indicating an incorrect array element reference.