dbt-labs / dbt-codegen

Macros that generate dbt code
https://hub.getdbt.com/dbt-labs/codegen/latest/
Apache License 2.0
459 stars 99 forks source link

Dash '-' in database name causes syntax error #87

Closed ScottHAZI closed 1 year ago

ScottHAZI commented 1 year ago

Describe the bug

Dash '-' in database name causes syntax error while using generate_source command.

Steps to reproduce

If the database name contains '-', it will cause syntax error.

Expected results

Without syntax error.

Actual results

Syntax error.

Screenshots and log output

image

System information

packages:

Which database are you using dbt with? redshift

The output of dbt --version: dbt cloud

The operating system you're using:

The output of python --version:

Additional context

The workaround here is to use '{ database_name: "\"DATABASE_NAME\"" }'

github-actions[bot] commented 1 year ago

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

github-actions[bot] commented 1 year ago

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.