Query history system table is now generally available
The system.query.history system table is GA to access records of queries run on SQL warehouses or serverless compute.
O que mudou
The system.query.history system table is now generally available (GA). It centralizes query execution logs across your entire account, allowing you to audit response times, statuses, and compute origins.
Use cases
Imagine you need to audit query performance across multiple workspaces and identify heavy workloads. With this table, you can:
- Query the execution status of statements run on SQL warehouses or serverless compute.
- Analyze detailed duration metrics, such as queue wait times and compilation times.
- Track the origin of queries executed by notebooks, jobs, or BI tools.
How to use
Access the data directly via SQL using the standard system table path.
SELECT
statement_id,
execution_status,
total_duration_ms,
executed_by
FROM
system.query.history
WHERE
start_time >= current_date() - interval 7 days
ORDER BY
total_duration_ms DESC
LIMIT 10;
What happens in this code:
- The query reads execution history directly from the
system.query.historysystem table. - It filters for queries executed over the last 7 days using the start time column.
- It sorts the results by the slowest queries based on total duration in milliseconds.
- It returns the top 10 longest-running executions for review.
Limitations and requirements
- Records are typically available within one hour of execution.
- By default, only account admins have direct access to the system table.
- The full statement text returns as
<REDACTED>unless accessed by admins or members of thedatabricks_pii_accessgroup.
- system tables
- audit logs
- query history
- databricks sql
- governance
The query history system table is now generally available
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis