Skip to content

Commit 26d22f1

Browse files
committed
Fix: Use a distinct name for the dbt manifest cache file (#2955)
1 parent b3f8037 commit 26d22f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ruff: noqa: E402
12
from __future__ import annotations
23

34
import json
@@ -8,7 +9,11 @@
89
from collections import defaultdict
910
from pathlib import Path
1011

11-
from dbt import flags
12+
from dbt import constants as dbt_constants, flags
13+
14+
# Override the file name to prevent dbt commands from invalidating the cache.
15+
dbt_constants.PARTIAL_PARSE_FILE_NAME = "sqlmesh_partial_parse.msgpack"
16+
1217
from dbt.adapters.factory import register_adapter, reset_adapters
1318
from dbt.config import Profile, Project, RuntimeConfig
1419
from dbt.config.profile import read_profile

0 commit comments

Comments
 (0)