File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/integration/hive_metastore Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 4
4
from collections .abc import Callable , Iterable
5
5
6
6
import pytest
7
- from databricks .labs .lsql .backends import StatementExecutionBackend
7
+ from databricks .labs .lsql .backends import CommandExecutionBackend , SqlBackend
8
8
from databricks .sdk .errors import NotFound
9
9
from databricks .sdk .retries import retried
10
10
17
17
logger = logging .getLogger (__name__ )
18
18
19
19
20
+ @pytest .fixture
21
+ def sql_backend (ws , env_or_skip ) -> SqlBackend :
22
+ """Ensure the SQL backend used during fixture setup is using the TACL cluster.
23
+
24
+ The TACL cluster is used for grants.
25
+ """
26
+ cluster_id = env_or_skip ("TEST_LEGACY_TABLE_ACL_CLUSTER_ID" )
27
+ return CommandExecutionBackend (ws , cluster_id )
28
+
29
+
20
30
@pytest .fixture ()
21
31
def _deployed_schema (runtime_ctx ) -> None :
22
32
"""Ensure that the schemas (and views) are initialized."""
You can’t perform that action at this time.
0 commit comments