Using WorkspaceClient -- run a saved query

lprevost
Contributor III

I've saved a query on my sql warehouse which has a parameter called :list_parameter.   

I've found my query id as follows:

 

 

from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
for query in w.queries.list():
    print(f"query: {query.display_name}, paramaters: {query.parameters}")

 

 

What i now can't seem to find out is how to run and wait for the query response on my client.

Something like w.queries.run(id = "xyz", parameters = {'list_parameter": "my, excellent, list"})