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

Add optional parameter to generate_base_models with a select * #146

Closed davesgonechina closed 9 months ago

davesgonechina commented 9 months ago

resolves #

This is a:

All pull requests from community contributors should target the main branch (default).

Description & motivation

Adds select_star parameter to generate_base_model to allow users to choose whether the base model explicitly includes column from the source or always includes all columns available from the source table. This can reduce base maintenance chore overhead especially when coupled with the materialization='view' parameter.

Checklist