Argument Types - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
qqu1556127655717.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

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