Data Type Encoding | DATASET Data Type | VantageCloud Lake - Data Type Encoding - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
The following client and server interfacing parcels return a Data Type Code:
  • DataInfo (parcel number 71)
  • DataInfoX (parcel number 146)
  • PrepInfo (number 86)
  • PrepInfoX (parcel number 125)
  • StatementInfo parcel (number 169)

DataInfo, DataInfoX and StatementInfo can also be used in the client-to-server direction, in which case the application specifies the data type code.

For the DATASET data type, the Data Type Code corresponds to the data type of the DATASET data type transform type. For example, if the transform for a DATASET type in the Avro storage format is a BLOB, the Data Type Code is a BLOB (400 or 401).

For the Server Data Type Code field of the StatementInfo parcel (parcel number 169), the following encoding for the DATASET data type is used. The encoding numbers defined follow the pattern for existing data types (such as Nullable number is non-Nullable value + 1, stored procedure IN parameter type number is 500 + non-nullable number, and so on). These type codes are never returned to the client as a Data Type Code, only as a Server Data Type Code.

Data Type NULL Property Stored Procedure Parameter Type
  Non-nullable Nullable IN INOUT OUT
DATASET STORAGE FORMAT Avro 512 513 1012 1013 1014

These codes are sent from server to client, and are accepted by server from client in the parcels described in the following sections. The only restriction is the type may not be used in the USING clause. VARBYTE/BLOB can be used for Avro and when necessary, this data is implicitly casted to the DATASET type.