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 name | Type | Description |
|---|---|---|
QUERY_ID | varchar(256) | The ID of the query. |
QUERY_START_TIME | varchar(256) | The start time of the query. |
QUERY_TIME_MS | bigint | The execution time of the query. |
WORKLOAD_GROUP_ID | bigint | Workload group ID. |
DATABASE | varchar(256) | The database where the query was executed. |
FRONTEND_INSTANCE | varchar(256) | The IP address of the Frontend instance that received the query request. |
QUEUE_START_TIME | varchar(256) | The start time of queuing; empty if not queued. |
QUEUE_END_TIME | varchar(256) | The end time of queuing; empty if not queued. |
QUERY_STATUS | varchar(256) | The status of the query. |
USER | varchar(256) | SQL user that submitted the query. |
SQL | string | The text of the query statement. |
Use DESCRIBE information_schema.active_queries; to inspect the schema in your warehouse.