Skip to content

Commit d8bfd95

Browse files
Fix: Dbt import issue (#3149)
1 parent aedc65c commit d8bfd95

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sqlmesh/core/context.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
run_tests,
106106
)
107107
from sqlmesh.core.user import User
108-
from sqlmesh.dbt.loader import DbtLoader
109108
from sqlmesh.utils import UniqueKeyDict, sys_path
110109
from sqlmesh.utils.dag import DAG
111110
from sqlmesh.utils.date import TimeLike, now_ds, to_date
@@ -333,7 +332,7 @@ def __init__(
333332

334333
self.path, self.config = t.cast(t.Tuple[Path, C], next(iter(self.configs.items())))
335334
for path, config in self.configs.items():
336-
project_type = c.DBT if issubclass(config.loader, DbtLoader) else c.NATIVE
335+
project_type = c.DBT if config.loader.__name__.lower().startswith(c.DBT) else c.NATIVE
337336
if project_type not in self._loaders:
338337
self._loaders[project_type] = SimpleNamespace(
339338
loader=(loader or config.loader)(**config.loader_kwargs), configs={}

0 commit comments

Comments
 (0)