You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support conveniently managing the lifecycle of Databricks SQL endpoints. This likely entails building one or more operators which talk to the endpoints API and support:
Creating endpoints
Deleting endpoints
Starting endpoints
Stopping endpoints
These operations map cleanly to individual API calls.
Right now, the logic in that function is specific to the kind of operators defined in the same file, i.e., to operators which create runs. I think something similar would be useful for other operators, but it would likely have to operate on the status of a query execution or similar (rather than the state of a job run).
@besenthil we don't have stubs for testing, so you need to have access to a workspace with Dataricks SQL, plus corresponding permissions to create SQL Endpoints.
From implementation perspective, you need to use _do_api_call function - first POST definition of SQL Endpoint, and then check for it's status. Please note that request will fail if you submit an endpoint with the same name, so you will need to check it (I have a code for that in PR for Databricks SQL Operator)
Start/stop is already covered: DatabricksStartWarehouseOperator and DatabricksStopWarehouseOperator (#70088), with deferrable mode (#71752). That is the part of this request that belongs inside a Dag run.
I would leave create/delete/edit out of scope. A SQL warehouse is long-lived shared infrastructure that is usually managed declaratively (Terraform or bundles), and auto-stop already covers the cost concern that creating and deleting one per run would address. My suggestion is to close this as completed by #70088 and #71752, and to open a new, narrower issue if someone has a concrete use case for create/delete or looking a warehouse up by name.
Drafted-by: Claude Code (Opus 5.5); reviewed by @moomindani before posting
Activity
[-]Databricks: add endpoint CRUD operators[/-][+]Databricks: add SQL endpoint operators[/+]besenthil commentedon Feb 8, 2022
@dinowernli
Would the function
_handle_databricks_operator_executionbe applicable for API endpoints which are not ASYNC like the creation of sql endpoint?dinowernli commentedon Feb 8, 2022
Right now, the logic in that function is specific to the kind of operators defined in the same file, i.e., to operators which create runs. I think something similar would be useful for other operators, but it would likely have to operate on the status of a query execution or similar (rather than the state of a job run).
besenthil commentedon Feb 8, 2022
Thanks @dinowernli I will take a look at it.
besenthil commentedon Feb 13, 2022
@dinowernli
Is there a test stub that I can use for testing the API call?
alexott commentedon Feb 14, 2022
@besenthil we don't have stubs for testing, so you need to have access to a workspace with Dataricks SQL, plus corresponding permissions to create SQL Endpoints.
From implementation perspective, you need to use
_do_api_callfunction - first POST definition of SQL Endpoint, and then check for it's status. Please note that request will fail if you submit an endpoint with the same name, so you will need to check it (I have a code for that in PR for Databricks SQL Operator)besenthil commentedon Feb 19, 2022
Thanks @alexott
alexott commentedon Feb 27, 2022
@besenthil is implementation in progress, or you need an additional help with it?
besenthil commentedon Feb 28, 2022
adam133 commentedon Aug 22, 2023
Found this as part of debugging another issue... Databricks renamed the sql/endpoints API to sql/warehouses: https://docs.databricks.com/api/workspace/warehouses/list
The "list endpoints" endpoint no longer exists that's referenced here:
airflow/airflow/providers/databricks/hooks/databricks_sql.py
Line 30 in 9eae662
wojkam73159 commentedon Nov 26, 2023
Hi, is this issue is still open?
potiuk commentedon Nov 29, 2023
Nothing says otherwise
Vamsi-klu commentedon Jul 19, 2026
eladkal commentedon Sep 25, 2026
cc @moomindani can you please check this feature request and let us know if still relevant from Databricks point of view?
moomindani commentedon Sep 30, 2026
Start/stop is already covered:
DatabricksStartWarehouseOperatorandDatabricksStopWarehouseOperator(#70088), with deferrable mode (#71752). That is the part of this request that belongs inside a Dag run.I would leave create/delete/edit out of scope. A SQL warehouse is long-lived shared infrastructure that is usually managed declaratively (Terraform or bundles), and auto-stop already covers the cost concern that creating and deleting one per run would address. My suggestion is to close this as completed by #70088 and #71752, and to open a new, narrower issue if someone has a concrete use case for create/delete or looking a warehouse up by name.
Drafted-by: Claude Code (Opus 5.5); reviewed by @moomindani before posting