16.20 - Example: Using QryLogFeatureUseJSON - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

The following SELECT statement converts the FeatureUsage column data in DBC.DBQLogTbl from bitmap into JSON documents containing a list of features used by the request:

select * from QryLogFeatureUseJSON sample 1;

Result:

QueryID    307180509041677178
FeatureUsageJSON  {"QueryID":"307180509041677178","FeatureInfo":["DBQL STEP Logging","Partition Level Locking"]}