16.20 - Argument Types - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Administration
Programming Reference
Publication ID
B035-1210-162K
Language
English (United States)

TD_SYSFNLIB.TD_DBQLFUL parses the feature bitmap and generates a JSON document with a feature name list for each bit set in the bitmap. The feature list in JSON format is represented as JSON array type.

TD_SYSFNLIB.TD_DBQLFUL takes two input arguments and produces, as output, two table columns.

The following help statement provides detailed description of the function argument and output parameters.

help function TD_SYSFNLIB.TD_DBQLFUL;
Parameter Name Type Comment
QID D Input parameter QueryID from DBC.DBQLogTbl.QueryID
data BV Input parameter VARBYTE data from DBC.DBQLogTbl.FeatureUsage
QueryID D Output table column #1 (Foreign Key) System wide unique value to join DBQL tables.
FeatureUsageJSON JN Output table column #2 feature list in JSON format.

where:

D – Decimal(18,0)
BV – VARBYTE
JN - JSON