dbt-codegen
dbt-codegen copied to clipboard
Macros that generate dbt code
### Describe the feature From https://github.com/dbt-labs/dbt-external-tables/issues/249#issuecomment-2048321896 If I have to add an external table as a source in dbt, I use the dbt-external-tables package. Most platforms offer an `infer_schema` choice...
### Steps to reproduce 1. Install dbt-core 1.8.0b2 with a compatible adapter 2. Create a new analysis and paste `{{ log('repro: ' ~ codegen.get_models(directory='somedir')) }}` 3. Run `dbt run -s...
Following https://github.com/dbt-labs/dbt-codegen/pull/168 merging it would be great to cut a release with the changes as @mickaelandrieu suggested in https://github.com/dbt-labs/dbt-codegen/pull/168#issuecomment-2030061769. @gwenwindflower is that something you could help us with? 😄
### Describe the feature Model and column descriptions can be stored in the database using the [persist_docs](https://docs.getdbt.com/reference/resource-configs/persist_docs) feature. It is sometimes useful to "regenerate" the YAML files for models when...
### Describe the bug If your redshift connection is to the database `dev` but your source is on a separate database `sources` - then the `generate_base_model()` macro does not work...
### Describe the feature The create_base_models macro should also accept true or false values for leading_commas and case_sensitive_cols as additional parameters. This would apply to the generated commands and will...
### Describe the bug dbt_project.yml version is not matching with the latest release version ### Steps to reproduce Open dbt_project.yml and read **version** details. ### Expected results I might be...
### Describe the bug running generate_source against TRINO connector returns error 20:28:00.233549 [debug] [MainThread]: On macro_generate_source: select distinct table_schema as "table_schema", table_name as "table_name", case table_type when 'BASE TABLE' then...
### Describe the bug Generate Source Yaml doesn't preserve capitalization on schema/table names, creates unusable yaml for BQ (probably others) ### Steps to reproduce Generate source yaml against a table...