diff --git a/.changes/1.13.0.md b/.changes/1.13.0.md new file mode 100644 index 00000000..2fade0c2 --- /dev/null +++ b/.changes/1.13.0.md @@ -0,0 +1,13 @@ +## dbt-adapters 1.13.0 - December 19, 2024 + +### Features + +- Add function to run custom sql for getting freshness info ([#8797](https://github.com/dbt-labs/dbt-adapters/issues/8797)) + +### Fixes + +- Use `sql` instead of `compiled_code` within the default `get_limit_sql` macro ([#372](https://github.com/dbt-labs/dbt-adapters/issues/372)) + +### Under the Hood + +- Adapter tests for new snapshot configs ([#380](https://github.com/dbt-labs/dbt-adapters/issues/380)) diff --git a/.changes/unreleased/Features-20241216-172047.yaml b/.changes/unreleased/Features-20241216-172047.yaml deleted file mode 100644 index 232d184b..00000000 --- a/.changes/unreleased/Features-20241216-172047.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add function to run custom sql for getting freshness info -time: 2024-12-16T17:20:47.065611-08:00 -custom: - Author: ChenyuLInx - Issue: "8797" diff --git a/.changes/unreleased/Under the Hood-20241211-184328.yaml b/.changes/unreleased/Under the Hood-20241211-184328.yaml deleted file mode 100644 index 87a1fc84..00000000 --- a/.changes/unreleased/Under the Hood-20241211-184328.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Adapter tests for new snapshot configs -time: 2024-12-11T18:43:28.073463-07:00 -custom: - Author: dbeatty10 - Issue: "380" diff --git a/.github/workflows/_generate-changelog.yml b/.github/workflows/_generate-changelog.yml index acefb3e0..4b0fc18c 100644 --- a/.github/workflows/_generate-changelog.yml +++ b/.github/workflows/_generate-changelog.yml @@ -222,8 +222,7 @@ jobs: steps: - id: branch run: | - branch="" - if [ ${{ needs.temp-branch.outputs.name == '' || inputs.merge }}] + if [[ ${{ needs.temp-branch.outputs.name == '' || inputs.merge }} ]] then branch="${{ inputs.branch }}" else diff --git a/CHANGELOG.md b/CHANGELOG.md index 47a19fcb..fde4210c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). -## dbt-adapters 1.12.0 - December 18, 2024 +## dbt-adapters 1.13.0 - December 19, 2024 + +### Features + +- Add function to run custom sql for getting freshness info ([#8797](https://github.com/dbt-labs/dbt-adapters/issues/8797)) + +### Fixes +- Use `sql` instead of `compiled_code` within the default `get_limit_sql` macro ([#372](https://github.com/dbt-labs/dbt-adapters/issues/372)) +### Under the Hood + +- Adapter tests for new snapshot configs ([#380](https://github.com/dbt-labs/dbt-adapters/issues/380)) + + + +## dbt-adapters 1.12.0 - December 18, 2024 ## dbt-adapters 1.11.0 - December 17, 2024 diff --git a/dbt/adapters/__about__.py b/dbt/adapters/__about__.py index 134ed009..667df30e 100644 --- a/dbt/adapters/__about__.py +++ b/dbt/adapters/__about__.py @@ -1 +1 @@ -version = "1.12.0" +version = "1.13.0" diff --git a/dbt/include/global_project/macros/adapters/show.sql b/dbt/include/global_project/macros/adapters/show.sql index 3a5faa98..fb17bb96 100644 --- a/dbt/include/global_project/macros/adapters/show.sql +++ b/dbt/include/global_project/macros/adapters/show.sql @@ -19,7 +19,7 @@ {%- endmacro -%} {% macro default__get_limit_sql(sql, limit) %} - {{ compiled_code }} + {{ sql }} {% if limit is not none %} limit {{ limit }} {%- endif -%}