note
If your workspace is enabled for serverless compute, your query history also contains all SQL and Python queries run on serverless compute for notebooks and jobs. See Connect to serverless compute.
If your workspace has Query History & Profile for Lakeflow Declarative Pipelines enabled (Public Preview), your query history shows CREATE
and REFRESH
statements run on a SQL warehouse or through Lakeflow Declarative Pipelines.
You can use the information available through this screen to help you debug issues with queries.
This section describes how to work with query history using the UI. To work with query history using the API, see Query History.
View query historyâYou can view previous query runs if you are the query owner. Other users can view query runs if they have at least CAN VIEW access to the SQL warehouse that executed the query.
To view previous runs for a query:
note
Databricks SQL queries shared by a user with Run as Owner permissions to another user with CAN RUN permissions appear in the query history of the user executing the query and not the user that shared the query.
View query detailsâTo view details about a query, such as the complete query statement, query source, duration, number of rows returned, and I/O performance, or execution details.
Access the query history as outlined in the previous section.
Click the query text you want to view. A summary panel opens to the right.
For more detailed information about the query's performance, including its execution plan, click View Query Profile near the bottom of the page. For more details, see Query profile.
To terminate a long-running query started by you or another user:
Access the query history as outlined in the previous section.
Click the query text.
Next to Status, click Cancel.
note
Cancel only appears when a query is running.
The query is terminated, and its status changes to Canceled.
note
Statements that use Lakeflow Declarative Pipelines compute can only be canceled from the Pipelines UI.
Access the query history system tableâDatabricks system tables include a query history table (system.query.history
) where privileged users can view tabular query history records from across your account. By default, only admins have access to your account's system tables. For information on enabling and accessing the query history system table, see Query history system table reference.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4