You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Changelog, temporarily remove Case Sensitivity testing (#174)
* Update changelog
* Fix typo in CHANGELOG
* Attempt to fix integration test case sensitivity for redshift
* Always lower on Redshift
* Fix indentation
* Fix whitespace
* Fix whitespace pt 2
* Update case sensitive seeds into folder
* Use + for quote_columns config
* Lower schema on redshift
* Use target.type
* Do some nonsense to make this work for Redshift
* Move seeds config to properties.yml
* Bypass redshift completely
* Temporarily bypass Redshift in CI completely
* Turn Redshift CI back on
* Delete case sensitivity test
* Delete case sensitive seed
* Delete properties.yml for case sensitive seeds
-`generate_model_yaml` with `upstream_descriptions=True` now reads from upstream sources in addition to models.
1
+
# dbt-codegen v0.12.0-b1
2
+
3
+
## What's Changed
4
+
5
+
### Features
6
+
7
+
-`generate_model_yaml` with `upstream_descriptions=True` now reads from upstream sources in addition to models.(#112)[https://github.com/dbt-labs/dbt-codegen/issues/112]
8
+
-`generate_source` now has options for case sensitivity in all fields ([#112](https://github.com/dbt-labs/dbt-codegen/issues/112)
9
+
10
+
### Fixes
3
11
4
-
## Fixes
5
12
- Column `description` fields are now correctly escaped in `generate_model_yaml` ([#142](https://github.com/dbt-labs/dbt-codegen/issues/142))
6
-
- Fix `generate_source` behavior of applying a lowercase function to all object names ([#112](https://github.com/dbt-labs/dbt-codegen/issues/112))
13
+
14
+
### Docs
15
+
16
+
- Fixed `generate_source` documentation
17
+
- Rewrote the contributor README at `integration_tests/README.md`
18
+
19
+
## New Contributors
20
+
21
+
-@wircho made their first contribution in https://github.com/dbt-labs/dbt-codegen/pull/159
22
+
-@yatsky made their first contribution in https://github.com/dbt-labs/dbt-codegen/pull/164
23
+
-@pnadolny made their first contribution in https://github.com/dbt-labs/dbt-codegen/pull/168
24
+
-@esegal made their first contribution in https://github.com/dbt-labs/dbt-codegen/pull/154
25
+
-@gwenwindflower made their first contribution in https://github.com/dbt-labs/dbt-codegen/pull/163
and are lowercase to align with the dbt style guide. Scale & precision are **not** included. Previous logic for `generate_source` defaulted to `false` and the resulting data types were uppercase and included scale & precision ([#122](https://github.com/dbt-labs/dbt-codegen/pull/122)).
14
37
15
38
[Dispatch](https://docs.getdbt.com/reference/dbt-jinja-functions/dispatch) can be used to utilize the column data type formatting of previous versions. Namely, by adding this macro to your project:
- Now uses `print` instead of `log` to output the generated text into the console. This enables you to invoke dbt with the `--quiet` flag and directly pipe the codegen output into a new file, ending up with valid yaml
- Add support for including description placeholders for the source and table, which changes the behavior of `generate_source` when `include_descriptions` is set to `True`. Previous logic only created description placeholders for the columns ([#64](https://github.com/dbt-labs/dbt-codegen/issues/64), [#66](https://github.com/dbt-labs/dbt-codegen/pull/66))
83
119
84
120
## New features
121
+
85
122
- Add optional `table_names` arg to `generate_source` ([#50](https://github.com/dbt-labs/dbt-codegen/issues/50), [#51](https://github.com/dbt-labs/dbt-codegen/pull/51))
86
123
- Add support for importing descriptions from columns with the same names in upstream models. It is available by setting the parameter `upstream_descriptions` to `True` in `generate_model_yaml` ([#61](https://github.com/dbt-labs/dbt-codegen/pull/61))
87
124
- Added `case_sensitive_cols` argument to `generate_base_model` macro ([#63](https://github.com/dbt-labs/dbt-codegen/pull/63))
88
125
- Add optional `name` arg to `generate_source` ([#64](https://github.com/dbt-labs/dbt-codegen/issues/64), [#66](https://github.com/dbt-labs/dbt-codegen/pull/66))
This release creates breaking changes to the `generate_source.sql` macro.
103
142
104
143
## Features
144
+
105
145
- add optional `table_pattern` argument to `generate_source.sql` macro. Default value is '%' to pull all tables in the raw data schema to preserve existing behavior if the `table_pattern` argument is not specified by the user.
106
146
107
147
# dbt-codegen v0.5.0
108
148
109
149
This release supports any version (minor and patch) of v1, which means far less need for compatibility releases in the future.
110
150
111
151
## Under the hood
152
+
112
153
- Change `require-dbt-version` to `[">=1.0.0", "<2.0.0"]`
113
154
- Bump dbt-utils dependency
114
155
- Replace `source-paths` and `data-paths` with `model-paths` and `seed-paths` respectively
115
156
- Rename `data` and `analysis` directories to `seeds` and `analyses` respectively
116
157
- Replace `dbt_modules` with `dbt_packages` in `clean-targets`
117
158
118
159
# dbt-codegen v0.4.1
160
+
119
161
🚨 This is a compatibility release in preparation for `dbt-core` v1.0.0 (🎉). Projects using this version with `dbt-core` v1.0.x can expect to see a deprecation warning. This will be resolved in the next minor release.
120
162
121
163
# dbt-codegen v0.4.0
122
164
123
165
## Breaking changes
166
+
124
167
- Requires `dbt>=0.20.0` and `dbt-utils>=0.7.0`
125
168
- Depends on `dbt-labs/dbt_utils` (instead of `fishtown-analytics/dbt_utils`)
126
169
127
170
## Features
171
+
128
172
- Add optional `leading_commas` arg to `generate_base_model` (#41 @jaypeedevlin)
129
173
- Add optional `include_descriptions` arg to `generate_source` (#40 @djbelknapdbs)
130
174
131
175
## Fixes
176
+
132
177
- In the `generate_source` macro, use `dbt_utils.get_relations_by_pattern` instead of `get_relations_by_prefix`, since the latter will be deprecated in the future (#42)
133
178
134
179
## Under the hood
180
+
135
181
- Use new adapter.dispatch syntax (#44)
136
182
137
183
# dbt-codegen v0.3.2
138
184
139
185
This is a quality of life release
140
186
141
187
## Other
142
-
* Fix rendering issues on hub.getdbt.com
143
-
* Fix integration tests due to python version compatibility
188
+
189
+
- Fix rendering issues on hub.getdbt.com
190
+
- Fix integration tests due to python version compatibility
144
191
145
192
# dbt-codegen v0.3.1
193
+
146
194
This is a bugfix release
147
195
148
196
## Fixes
197
+
149
198
- Use latest version of dbt-utils (0.6.2) to ensure generate_source_yaml works for non-target schemata (#34)
150
199
151
200
# dbt-codegen v0.3.0
152
-
## 🚨 Breaking change
201
+
202
+
## 🚨 Breaking change
203
+
153
204
This release requires dbt v0.18.0, and dbt-utils v0.6.1. If you're not ready to upgrade, consider using a previous release of this package.
154
205
155
206
## Quality of life
207
+
156
208
- Use dbt v0.18.0 (#31)
157
-
- Fix README rendering on hub (#32 @calvingiles)
209
+
- Fix README rendering on hub (#32 @calvingiles)
158
210
159
211
# dbt-codegen v0.2.0
212
+
160
213
## 🚨 Breaking change
214
+
161
215
The lower bound of `dbt-utils` is now `0.4.0`.
162
216
163
217
This won't affect most users, since you're likely already using version of dbt-utils higher than this to achieve 0.17.0 compatibility.
164
218
165
219
## Quality of life:
220
+
166
221
- Change dbt-utils dependencies to `[>=0.4.0, <0.6.0]` (#29)
167
222
- Fix tests (#29)
168
223
169
224
# dbt-codegen v0.1.0
225
+
170
226
## 🚨 Breaking change!
171
227
172
228
This package now requires dbt v0.17.x!
173
229
174
230
## Features:
175
-
* Add `generate_model_yaml` (#18 @jtalmi)
176
231
232
+
- Add `generate_model_yaml` (#18 @jtalmi)
177
233
178
234
## Under the hood:
179
-
* Update to v0.17.0, including `dbt_project.yml` version 2 syntax (#23)
180
-
* Add GitHub templates and installation instructions (#23)
235
+
236
+
- Update to v0.17.0, including `dbt_project.yml` version 2 syntax (#23)
237
+
- Add GitHub templates and installation instructions (#23)
181
238
182
239
## Acknowledgements
240
+
183
241
@marzaccaro made a PR for `generate_model_yaml`, and, although I had reviewed it, I let the PR go stale and somehow completely forgot about it when merging PR #18 — this is completely my bad! So equal credit to @marzaccaro and @jtalmi for their work :clap:
184
242
185
243
# dbt-codegen v0.0.4
244
+
186
245
This is a bugfix release to improve compatibility with Snowflake
0 commit comments