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 row produced from rest API in databricks for long running queries in Running state

slakshmanan
New Contributor III
   print(f"Query ID: {query['query_id']} ,Duration: {query['duration']} ms,user :{query['user_display_name']},Query_execute :{query['query_text']},Query_status : {query['status']},
rw:{query['rows_produced']}"
")
 
U am able to get rows_produced only for 'FINISHED' 
but i need this rows_produced for 'CANCELLED' and 'RUNNING'
 
 
 
1 REPLY 1

slakshmanan
New Contributor III
https://{databricks_instance}.cloud.databricks.com/api/2.0/sql/history/queries?include_metrics=true

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