When you create a SQL query using the queries API, it saves the query definition—it does not execute it. This behavior is by design.
To execute the query, you have two main options:
1) Use the
databricks.Job resource to run saved queries
2) Use the Statement Execution API directly (Endpoint: POST /api/2.0/sql/statements)
This API allows you to run an ad-hoc SQL statement against a specified SQL warehouse, eg. if you just want to execute SQL without saving or managing it as a job. You could call the API directly from your program if you want to run it on every pulumi command. Alternatively, you can use the
Command provider to create a resource that runs the query via a script when it is created or updated.