Skip to content

Commit 783d18c

Browse files
committed
Fix test on dbt<1.5
1 parent 1921e08 commit 783d18c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sqlmesh/core/config/root.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import re
55
import typing as t
66
import zlib
7-
import logging
87

98
from pydantic import Field
109
from pydantic.functional_validators import BeforeValidator
@@ -51,8 +50,6 @@
5150
from sqlmesh.utils.errors import ConfigError
5251
from sqlmesh.utils.pydantic import model_validator
5352

54-
logger = logging.getLogger(__name__)
55-
5653

5754
def validate_no_past_ttl(v: str) -> str:
5855
current_time = now()

tests/fixtures/dbt/empty_project/profiles.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ empty_project:
55
outputs:
66
__DEFAULT_TARGET__:
77
type: duckdb
8+
# database is required for dbt < 1.5 where our adapter deliberately doesnt infer the database from the path and
9+
# defaults it to "main", which raises a "project catalog doesnt match context catalog" error
10+
# ref: https://github.com/TobikoData/sqlmesh/pull/1109
11+
database: empty_project
812
path: 'empty_project.duckdb'
913
threads: 4

0 commit comments

Comments
 (0)