17.00 - Example: Using QryLogFeatureUseJSON - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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