Hey @John Kowtko, I wanted to ask whether you'd know what was the logic for distinguishing system generated SQL queries vs those submitted by the users?
System generated query :
{"sqlQuery/time":48,"sqlQuery/planningTimeMs":20,"sqlQuery/bytes":3,"success":true,"identity":"allowAll","context":{"sqlQueryId":"5a96b1e8-4d09-48ea-82b6-929670b0067a","queryId":"5a96b1e8-4d09-48ea-82b6-929670b0067a","nativeQueryIds":"[]"}} {"query":"SELECT\n \"datasource\", \"type\", COUNT(*) AS \"num_running_tasks\"\nFROM sys.tasks WHERE \"status\" = 'RUNNING' AND \"runner_status\" = 'RUNNING'\nGROUP BY 1, 2","context":{"sqlQueryId":"5a96b1e8-4d09-48ea-82b6-929670b0067a","queryId":"5a96b1e8-4d09-48ea-82b6-929670b0067a","nativeQueryIds":"[]"}}
User generated query
{"sqlQuery/time":60,"sqlQuery/planningTimeMs":6,"sqlQuery/bytes":167773,"success":true,"identity":"allowAll","context":{"sqlQueryId":"bf713cee-f776-459e-86dd-ba00f331edbd","sqlOuterLimit":1001,"queryId":"bf713cee-f776-459e-86dd-ba00f331edbd","nativeQueryIds":"[bf713cee-f776-459e-86dd-ba00f331edbd]"}} {"query":"SELECT *\nFROM \"chart_1068-v3\"","context":{"sqlQueryId":"bf713cee-f776-459e-86dd-ba00f331edbd","sqlOuterLimit":1001,"queryId":"bf713cee-f776-459e-86dd-ba00f331edbd","nativeQueryIds":"[bf713cee-f776-459e-86dd-ba00f331edbd]"}}