queryId | string | Query ID. |
eventTime | long | Internal timestamp used for filtering. Monotonic nanosecond timestamp derived from wall-clock time. |
isQuery | boolean | Whether the statement is a query. |
remoteIP | string | Client IP address or System. |
connId | int | Connection ID. |
startTime | long | Query start time in milliseconds since epoch. |
endTime | long | Query end time in milliseconds since epoch. -1 if not finished. |
latency | long | Query latency in milliseconds. -1 if not finished. |
pendingTime | long | Pending time in milliseconds. |
netTime | long | Net execution time in milliseconds. |
netComputeTime | long | Net compute time in milliseconds. |
state | string | One of RUNNING, FINISHED, FAILED, CANCELLED. |
database | string | Current database. |
sql | string | SQL text (may be desensitized if configured). |
user | string | Login user (qualified user). |
impersonatedUser | string | Target user of EXECUTE AS. null if not executing as another user. |
errorMessage | string | Error message when failed. |
explain | string | Explain plan (level controlled by query_detail_explain_level). |
profile | string | Profile text if collected. |
resourceGroupName | string | Resource group name. |
scanRows | long | Scanned rows. |
scanBytes | long | Scanned bytes. |
returnRows | long | Returned rows. |
cpuCostNs | long | CPU cost in nanoseconds. |
memCostBytes | long | Memory cost in bytes. |
spillBytes | long | Spill bytes. |
cacheMissRatio | float | Cache miss ratio in percent (0-100). |
warehouse | string | Warehouse name. |
digest | string | SQL digest. |
catalog | string | Catalog name. |
command | string | MySQL command name. |
preparedStmtId | string | Prepared statement handle or SQL PREPARE name, scoped to a connection and reusable. Use prepareQueryId to correlate history. |
prepareQueryId | string | Query ID of the original PREPARE. EXECUTE records retain this ID even if the handle is later reused. Also recorded as PrepareQueryId in the audit log. |
queryFeMemory | long | FE memory allocated by the query, in bytes. |
querySource | string | Query source: EXTERNAL, INTERNAL, MV, or TASK. |