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
fix(databricks): use value check for databricks_connect_use_serverless
Previously, `_set_spark_engine_adapter_if_needed` used a key-presence
check (`"databricks_connect_use_serverless" in self._extra_config`) to
decide whether to route to serverless. This caused `cluster_id` to be
ignored whenever the key existed in config, even if its value was False.
Changed to a value check (`self._extra_config.get(...)`) so that
`cluster_id` is correctly used when serverless is explicitly disabled.
Closes#5842
Signed-off-by: Gabe Pesco <PescoG@medinsight.milliman.com>
Co-Authored-By: Claude <noreply@anthropic.com>
"""SELECT columns.column_name, columns.full_data_type FROM system.information_schema.columns WHERE table_name = 'test_table' AND table_schema = 'test_db' AND table_catalog = 'test_catalog' ORDER BY ordinal_position ASC"""
734
734
)
735
+
736
+
737
+
def_make_databricks_connect_adapter(
738
+
mocker: MockFixture,
739
+
make_mocked_engine_adapter: t.Callable,
740
+
extra_config: t.Dict[str, t.Any],
741
+
) ->t.Tuple[DatabricksEngineAdapter, t.Any]:
742
+
"""Helper that creates a DatabricksEngineAdapter with Databricks Connect mocked out."""
0 commit comments