Skip to content

Commit

Permalink
Merge pull request #434 from datacoves/DCV-2252-dbt-coves-schema-not-…
Browse files Browse the repository at this point in the history
…working-for-underscore-on-bigquery-433

fix:DCV-2252 dbt-coves schema should be quoted only on Snowflake adapter
  • Loading branch information
mprunell committed Feb 6, 2024
2 parents e023bc7 + 9614f97 commit aa3809e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbt_coves/tasks/generate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_schemas(self):
if fnmatch.fnmatch(schema.lower(), selector.lower()):
filtered_schemas.append(schema)
break
filtered_schemas = list({f'"{schema}"' for schema in filtered_schemas})
if "snowflake" in self.adapter.type().lower():
filtered_schemas = list({f'"{schema}"' for schema in filtered_schemas})
else:
filtered_schemas = list(set(filtered_schemas))

if not filtered_schemas:
schema_nlg = f"schema{'s' if len(schema_name_selectors) > 1 else ''}"
Expand Down

0 comments on commit aa3809e

Please sign in to comment.