17.10 - Example: Using QryLogFeatureUseJSON - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

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"]}