dbt-labs / dbt-codegen

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

Put the letters of the generate_source function in the same format as the table #88

Closed Rkohn123 closed 1 year ago

Rkohn123 commented 1 year ago

Describe the feature

When I exectute dbt run-operation generate_source --args 'schema_name: exemple' Tables are in lower case and my code doesn't work anymore I would like to have the letters written in the same format as the table.

Describe alternatives you've considered

https://github.com/dbt-labs/dbt-codegen/blob/2f13a51299327940d5ae07f036d480622ae39b7b/macros/generate_source.sql#L47 I think it's possible to change this line : {% do sources_yaml.append(' - name: ' ~ table | lower ) %}

Additional context

Is this feature database-specific? Which database(s) is/are relevant? Please include any other relevant context here.

I don't think so

Who will this benefit?

What kind of use case will this feature be useful for? Please be specific and provide examples, this will help us prioritize properly.

At least, all users of Bigquery who are working on Big Data

Are you interested in contributing this feature?

I would love to, but I am a beginner on dbt so I don't think that I can help a lot

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.