Query history

Preview

This feature is in Public Preview. Contact your Databricks representative to request access.

The query history shows SQL queries performed using SQL endpoints.

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

View query history

To view query history, do one of the following:

  • Click the History Icon icon in the sidebar.
  • Click the Endpoints Icon icon in the sidebar. In the Actions column, click the vertical ellipsis Vertical Ellipsis and select History.

You can filter the list by user, date range, endpoint type, and query status.

Query history

View query details

  1. View query history.
  2. Click a string in the Query column to display query details:
Query history

In the Details field click the Open link to display the query plan.

Note

The Open link is available only for queries executed on endpoints you have Can Manage permission for.

Query history

View query metrics

  1. View query history.

  2. Click a string in the Query column to display query details.

  3. Click the Execution Details tab to display query metrics.

    Query metrics