cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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?

BilalAslamDbrx
Honored Contributor II
Honored Contributor II

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.