From 4ff72d380dbfddb94f7c954c7f8ec5962d79342d Mon Sep 17 00:00:00 2001 From: Chris Rericha Date: Thu, 16 Oct 2025 15:34:21 -0400 Subject: [PATCH] Fix: Add dbt-core 1.2.0 support --- sqlmesh/dbt/manifest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlmesh/dbt/manifest.py b/sqlmesh/dbt/manifest.py index ea2058138f..fce561a24d 100644 --- a/sqlmesh/dbt/manifest.py +++ b/sqlmesh/dbt/manifest.py @@ -11,7 +11,7 @@ from functools import cached_property from pathlib import Path -from dbt import constants as dbt_constants, flags +from dbt import flags from sqlmesh.dbt.util import DBT_VERSION from sqlmesh.utils.conversions import make_serializable @@ -19,6 +19,8 @@ # Override the file name to prevent dbt commands from invalidating the cache. if DBT_VERSION >= (1, 6, 0): + from dbt import constants as dbt_constants + dbt_constants.PARTIAL_PARSE_FILE_NAME = "sqlmesh_partial_parse.msgpack" # type: ignore else: from dbt.parser import manifest as dbt_manifest # type: ignore