File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
tests/unit/macros/relations Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 44
55from dbt .adapters .databricks import catalogs , constants
66from tests .unit .macros .base import MacroTestBase
7-
8-
9- def unity_relation (
10- table_format : Optional [str ] = None ,
11- file_format : Optional [str ] = None ,
12- location_root : Optional [str ] = None ,
13- location_path : Optional [str ] = None ,
14- ) -> catalogs .DatabricksCatalogRelation :
15- catalog_integration = constants .DEFAULT_UNITY_CATALOG
16- return catalogs .DatabricksCatalogRelation (
17- catalog_type = catalog_integration .catalog_type ,
18- catalog_name = catalog_integration .catalog_name ,
19- table_format = table_format or catalog_integration .table_format ,
20- file_format = file_format or catalog_integration .file_format ,
21- external_volume = location_root or catalog_integration .external_volume ,
22- location_path = location_path ,
23- )
7+ from tests .unit .utils import unity_relation
248
259
2610class TestCreateTableAs (MacroTestBase ):
You can’t perform that action at this time.
0 commit comments