Skip to content

Commit 04db61e

Browse files
committed
Fix: Correct quoting of identifiers in the dbt adapter
1 parent 93a19a5 commit 04db61e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sqlmesh/dbt/adapter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import pandas as pd
88
from sqlglot import exp, parse_one
9-
from sqlglot.optimizer.qualify_columns import quote_identifiers
109

1110
from sqlmesh.core.dialect import normalize_and_quote, normalize_model_name
1211
from sqlmesh.core.engine_adapter import EngineAdapter
@@ -326,7 +325,7 @@ def resolve_identifier(self, relation: BaseRelation) -> t.Optional[str]:
326325
def _map_table_name(self, table: exp.Table) -> exp.Table:
327326
# Use the default dialect since this is the dialect used to normalize and quote keys in the
328327
# mapping table.
329-
name = quote_identifiers(table, dialect=self.project_dialect).sql()
328+
name = table.sql(identify=True)
330329
physical_table_name = self.table_mapping.get(name)
331330
if not physical_table_name:
332331
return table

0 commit comments

Comments
 (0)