Skip to content

Commit

Permalink
fix bug in vars: implementation for method options
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Jan 10, 2025
1 parent 59dab68 commit b735cd0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### `0.3.1`

- Fix bug in `vars:` implementation of method options.

### `0.3.0`

- Official support for Clickhouse!
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add this the `packages:` list your dbt project's `packages.yml`:

```yaml
- package: "dwreeves/dbt_linreg"
version: "0.3.0"
version: "0.3.1"
```
The full file will look something like this:
Expand All @@ -44,7 +44,7 @@ packages:
# Other packages here
# ...
- package: "dwreeves/dbt_linreg"
version: "0.3.0"
version: "0.3.1"
```
# Examples
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "dbt_linreg"
version: "0.3.0"
version: "0.3.1"

# 1.2 is required because of modules.itertools.
require-dbt-version: [">=1.2.0", "<2.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "dbt_linreg_tests"
version: "0.3.0"
version: "0.3.1"

require-dbt-version: [">=1.0.0", "<2.0.0"]

Expand Down
2 changes: 1 addition & 1 deletion macros/linear_regression/utils/utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,5 @@ on
{% endmacro %}

{% macro _get_method_option(method, field, method_options, default=none) %}
{{ return(method_options.get(field, var("dbt_linreg", {}).get("method_options", {}).get("method", {}).get(field, default))) }}
{{ return(method_options.get(field, var("dbt_linreg", {}).get("method_options", {}).get(method, {}).get(field, default))) }}
{% endmacro %}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[project]
name = "dbt_linreg"
requires-python = "~=3.11"
description = "dbt_pca dbt package"
version = "0.3.0"
description = "dbt_linreg dbt package"
version = "0.3.1"
readme = "README.md"
authors = ["Daniel Reeves"]

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b735cd0

Please sign in to comment.