cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to view the SQL Query History of traditional Databricks cluster (not Databricks SQL)?

jwilliam
Contributor

I tried use the Spark Cluster UI. But the queries are truncated.

1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable

The traditional cluster doesn't save a list of SQL queries. It has a SQL UI, but it shows a dag of what happened rather than the full query.

View solution in original post

4 REPLIES 4

Anonymous
Not applicable

The traditional cluster doesn't save a list of SQL queries. It has a SQL UI, but it shows a dag of what happened rather than the full query.

Hi @Joseph Kambourakisโ€‹ , does Databricks have any plans to support this in the future?

@John Williamโ€‹ it's definitely something we'd like to do.

walkermaster12
New Contributor II

In Apache Spark prior to 2.1, once a SQL query was run, there was no way to re-run it; all history was lost. Spark SQL introduced the "replay" functionality in Spark 2.1.0, enabling users to re-run any query they have already run. You can run a query once, save the query plan, and then later open the saved plan and run the query again. This type of history is stored in a table named sql query plan in the database. This can be seen by using the SHOW TABLES statement in the Spark SQL console.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group