cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I retrieve the total count of requests processed by the SQL warehouse during a given period?

Pramod_G
New Contributor II

Hi,

I need to create a dashboard displaying the total number of requests per status that have been processed or are currently being processed by the SQL warehouse.

I noticed the default graph for the SQL warehouse shows the number of queries executed per minute within a 2-hour window.

Pramod_G_0-1743011703416.png

I appreciate your help.

1 REPLY 1

Shua42
Databricks Employee
Databricks Employee

You can use the system table for this, system.query.history, which is now in public preview: https://docs.databricks.com/aws/en/admin/system-tables/query-history

It contains the full query history for warehouses, including status, executer, query text duration, etc. Just note that view access needs to be granted by an admin.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now