You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcommonQueryPart=`SELECT UserSID, QueryStartAt, Query as QueryText, ApplicationName from \`.sys/query_sessions\` WHERE ${filterConditions||'true'}`;
97
+
constfilterConditions=filters?.text
98
+
? `Query ILIKE '%${filters.text}%' OR UserSID ILIKE '%${filters.text}%'`
99
+
: '';
99
100
100
-
constqueryText=`${commonQueryPart} AND Query NOT LIKE '${commonQueryPart}%' ORDER BY SessionStartAt limit 100`;
101
+
constqueryText=`SELECT UserSID, QueryStartAt, Query as QueryText, ApplicationName from \`.sys/query_sessions\` WHERE ${filterConditions||'true'} ORDER BY SessionStartAt limit 100`;
0 commit comments