A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.databricks.com/aws/en/sql/user/queries/query-history below:

Query history | Databricks Documentation

Query history

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:

  1. Click Query History in the sidebar.
  2. Optionally, use the filters near the top of the page to filter the list by user, date range, compute, duration, query status, statement type, and statement ID.

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.

  1. Access the query history as outlined in the previous section.

  2. Click the query text you want to view. A summary panel opens to the right.

  3. 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.

Terminate an executing query​

To terminate a long-running query started by you or another user:

  1. Access the query history as outlined in the previous section.

  2. Click the query text.

  3. 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