Using WorkspaceClient -- run a saved query
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 12:34 PM
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"})