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-profile below:

Query profile | Databricks Documentation

Query profile

You can use a query profile to visualize the details of a query execution. The query profile helps you troubleshoot performance bottlenecks during the query's execution. For example:

Requirements​

To view a query profile, you must either be the owner of the query or you must have at least CAN MONITOR permission on the SQL warehouse that executed the query.

View a query profile​

You can view the query profile from the query history using the following steps:

  1. Click Query History in the sidebar.

  2. Click the name of a query. A query details panel appears on the right side of the screen.

    The query summary includes:

  3. Click See query profile. A Details panel opens on the right side of the screen.

    note

    If Query profile is not available is displayed, no profile is available for this query. A query profile is not available for queries that run from the query cache. To circumvent the query cache, make a trivial change to the query, such as changing or removing the LIMIT.

View query profile details​

The detailed query profile includes summary metrics on the left side of the panel and a graph view of operators on the right.

Explore query metrics​

The left side of the query profile has the following tabs:

  1. Details: Opens the Details panel which shows query summary metrics.

  2. Top operators: Opens the Top operators panel which shows the most expensive operators used in your query. This can be useful for identifying optimization opportunities.

  3. Query text: Opens the Query text panel which shows the full text of the query.

note

Some non-Photon operations are executed as a group and share common metrics. In this case, all operations have the same value as the parent operator for a given metric.

Explore the DAG​

The right half of the query profile shows the directed acyclic graph (DAG) of the query. The graph view shows metrics such as Time spent, Memory peak, and Rows. Click on each metric to change the reporting metric shown.

You can interact with the DAG in the following ways:

For Databricks SQL queries, you can also view the query profile in the Spark UI. Click the kebab menu near the top of the page, then click Open in Spark UI.

By default, metrics for some operations are hidden. These operations are unlikely to be the cause of performance bottlenecks. To see information for all operations, and to see additional metrics, click at the top of the page, then click Enable verbose mode.

Common operations​

The most common operations are:

To share a query profile with another user:

  1. View query history.
  2. Click the name of the query.
  3. To share the query, you have two choices:
Import a query profile​

To import the JSON for a query profile:

  1. View query history.

  2. Click the kebab menu on the upper right, and select Import query profile (JSON).

  3. In the file browser, select the JSON file that was shared with you and click Open. The JSON file is uploaded and the query profile is displayed.

    When you import a query profile, it is dynamically loaded into your browser session and does not persist in your workspace. You need to re-import it each time you want to view it.

  4. To close the imported query profile, click X at the top of the page.

Access the query profile​

You can also access the query profile in the following parts of the UI:

Next steps​

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