MATRIX_SPEC Element | Teradata Vantage - Matrix Specifications - Teradata Vantage

Database Unbounded Array Framework Time Series Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
ncd1634149624743.ditamap
dita:ditavalPath
ruu1634160136230.ditaval
dita:id
ncd1634149624743
A matrix is a two-dimensional array that has rows and columns. A matrix is identified by its MATRIX_ID fields, and is indexed by its ROW_AXIS and COLUMN_AXIS fields. A matrix can be a one of the following types:
  • Row-major matrix: Each row is processed as a wavelet that is grouped by its MATRIX_ID and ROW_AXIS, and ordered by its COLUMN_AXIS.
  • Column-major matrix: Each column is processes as a wavelet that is grouped by its MATRIX_ID and COLUMN_AXIS, and ordered by its ROW_AXIS.

A MATRIX_SPEC is used to reference any Teradata accessible table or a view, a derived-table, or a particular layer residing within an ART. When used to reference a layer of an ART, the LAYER parameter must be included, except the case in which the layer is ARTPRIMARY, in that case the LAYER parameter can be omitted.

The identifier and PAYLOAD fields can be renamed using AS clauses. However, this may not affect the output field names for the PAYLOAD fields because the PAYLOAD fields are input fields. The output payload field name is only affected if the function uses the input payload field name as the output field name or as part of the output field name.

The identifier columns cannot reference a user-defined type, complex data type or LOB column. Dot notation is allowed.