Skip to content

Commit 88c5d38

Browse files
authored
Fix: Add dbt-core 1.2.0 support (#5547)
1 parent 1f39998 commit 88c5d38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
from functools import cached_property
1212
from pathlib import Path
1313

14-
from dbt import constants as dbt_constants, flags
14+
from dbt import flags
1515

1616
from sqlmesh.dbt.util import DBT_VERSION
1717
from sqlmesh.utils.conversions import make_serializable
1818

1919
# Override the file name to prevent dbt commands from invalidating the cache.
2020

2121
if DBT_VERSION >= (1, 6, 0):
22+
from dbt import constants as dbt_constants
23+
2224
dbt_constants.PARTIAL_PARSE_FILE_NAME = "sqlmesh_partial_parse.msgpack" # type: ignore
2325
else:
2426
from dbt.parser import manifest as dbt_manifest # type: ignore

0 commit comments

Comments
 (0)