Skip to content

Commit

Permalink
Fix: Support the compare_dbr_version in the dbt adapter (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeigerman authored Jul 3, 2024
1 parent fa68217 commit 0dfaee7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqlmesh/dbt/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ def _relevance(package_name_pair: t.Tuple[t.Optional[str], str]) -> t.Tuple[int,
def type(self) -> str:
return self.project_dialect or ""

def compare_dbr_version(self, major: int, minor: int) -> int:
# This method is specific to the Databricks dbt adapter implementation and is used in some macros.
# Always return -1 to fallback to Spark macro implementations.
return -1


class ParsetimeAdapter(BaseAdapter):
def get_relation(self, database: str, schema: str, identifier: str) -> t.Optional[BaseRelation]:
Expand Down

0 comments on commit 0dfaee7

Please sign in to comment.