dbt-labs / dbt-codegen

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

Names are automatically casted to lower-case, regardless of capitalisation in database #112

Closed JoshuaClercx closed 1 year ago

JoshuaClercx commented 1 year ago

Describe the bug

Source, schema, database, table, and column names are automatically casted to lowercase when generating source yaml files, regardless of the casing of the name in the actual database.

Steps to reproduce

Generate a source yaml file from any database that contains capitalisation in the names of any of the aforementioned.

Expected results

Conservation of capitalisation in the yaml file as it is in the database.

Actual results

All-lowercase names.

Are you interested in contributing the fix?

Yes, as it would just require minor adjustments of a few lines.

charmiraval commented 1 year ago

This will be really helpful in case of different standards for ColumnName as per project instead of converting to lowercase.

yuhouzhou commented 1 year ago

Using the persist_docs configuration to sync the documentation between BigQuery and dbt docs requires matching cases of column names. It makes sense to have the option to keep the original case as in the databases.

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.