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
{{ message }}
Repository navigation
Commit dac16c8
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Gabe Pesco
committed
feat(databricks): add force_shared_connection and guard connector internals
On connector 4.6+ with the kernel extra, Reyden / Real-Time warehouses
open connections on the kernel backend, which ignores
credentials_provider and runs its own U2M browser flow per connection.
force_shared_connection runs every query over one connection (and
restores the pre-shared-login behaviour) as an escape hatch for that.
The capability check now imports every connector internal the shared
login uses and checks each accepts the arguments passed to it, instead
of probing for one module. If a connector upgrade changes them, U2M
OAuth falls back to a shared connection with a warning rather than
failing to connect. Checked against connector 4.2.6, 4.3.0 and 4.9.0.
shared_connection and the connection kwargs now both use
_uses_shared_u2m_login, so they cannot disagree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Gabe Pesco <PescoG@medinsight.milliman.com>
Copy file name to clipboardExpand all lines: docs/integrations/engines/databricks.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -270,6 +270,7 @@ The only relevant SQLMesh configuration parameter is the optional `catalog` para
270
270
|`force_databricks_connect`| When running locally, force the use of Databricks Connect for all model operations (so don't use SQL Connector for SQL models) | bool | N |
271
271
|`disable_databricks_connect`| When running locally, disable the use of Databricks Connect for all model operations (so use SQL Connector for all models) | bool | N |
272
272
|`disable_spark_session`| Do not use SparkSession if it is available (like when running in a notebook). | bool | N |
273
+
|`force_shared_connection`| SQL Connector Only: Run all queries over a single connection instead of one per thread. With U2M OAuth, use this if the connector opens connections on its kernel backend (Reyden / Real-Time warehouses), which runs a separate browser login for each connection.| bool | N |
0 commit comments