execution plan in databricks

Vineet S 145 Reputation points
2024-04-15T11:33:12.4566667+00:00

How to check execution plan in data bricks

select * from cte

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,926 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 15,446 Reputation points
    2024-04-15T13:38:25.7133333+00:00

    You have 3 alternatives and feel free to use the one that you are comfortable with :

    Follow the documentation to see an example for each use :

    https://learn.microsoft.com/en-us/azure/databricks/optimizations/aqe#query-plans

    1 person found this answer helpful.

  2. Dillon Silzer 54,631 Reputation points
    2024-04-20T06:02:08.7833333+00:00

    Hi Vineet,

    Here is a good explanation of using the explain function in databricks:

    https://www.advancinganalytics.co.uk/blog/2021/10/11/databricks-execution-plans

    More information on the EXPLAIN function:

    https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-qry-explain.html

    When you ask Databricks to explain your query, it gives you a detailed explanation of how it's going to carry out your request. This helps you understand how fast or slow your query might be and if there are any places where it might get stuck.

    If this is helpful please accept answer.

    0 comments No comments