Skip to main content

active_queries

View queries currently registered with the query frontend, including their SQL text, workload group, and execution status.

Run the query in the warehouse SQL Editor or a connected SQL client:

SELECT * FROM information_schema.active_queries LIMIT 10;

Database​

information_schema

Table information​

Column nameTypeDescription
QUERY_IDvarchar(256)The ID of the query.
QUERY_START_TIMEvarchar(256)The start time of the query.
QUERY_TIME_MSbigintThe execution time of the query.
WORKLOAD_GROUP_IDbigintWorkload group ID.
DATABASEvarchar(256)The database where the query was executed.
FRONTEND_INSTANCEvarchar(256)The IP address of the Frontend instance that received the query request.
QUEUE_START_TIMEvarchar(256)The start time of queuing; empty if not queued.
QUEUE_END_TIMEvarchar(256)The end time of queuing; empty if not queued.
QUERY_STATUSvarchar(256)The status of the query.
USERvarchar(256)SQL user that submitted the query.
SQLstringThe text of the query statement.

Use DESCRIBE information_schema.active_queries; to inspect the schema in your warehouse.

Ask AI