Skip to content

Commit

Permalink
fix synapse_adapter.py to import _make_ref_key_msg (instead of ..._di…
Browse files Browse the repository at this point in the history
…ct, not available in dbt-core v1.4.9, see dbt-labs/dbt-core@v1.4.9...v1.7.6)
  • Loading branch information
arthurcht committed Feb 12, 2024
1 parent 34adcc5 commit a46b586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/synapse/synapse_adapter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dbt.adapters.base.relation import BaseRelation
from dbt.adapters.cache import _make_ref_key_dict
from dbt.adapters.cache import _make_ref_key_msg
from dbt.adapters.fabric import FabricAdapter
from dbt.adapters.sql.impl import CREATE_SCHEMA_MACRO_NAME
from dbt.events.functions import fire_event
Expand All @@ -13,7 +13,7 @@ class SynapseAdapter(FabricAdapter):

def create_schema(self, relation: BaseRelation) -> None:
relation = relation.without_identifier()
fire_event(SchemaCreation(relation=_make_ref_key_dict(relation)))
fire_event(SchemaCreation(relation=_make_ref_key_msg(relation)))
macro_name = CREATE_SCHEMA_MACRO_NAME
kwargs = {
"relation": relation,
Expand Down

0 comments on commit a46b586

Please sign in to comment.