From 0cd8f73ece47069a56243503d7f249db7e286cea Mon Sep 17 00:00:00 2001 From: Colin Rogers <111200756+colin-rogers-dbt@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:49:57 -0700 Subject: [PATCH 01/15] Correct CHANGELOG.md Looks like when we accidentally release 1.8.0 for dbt-adapters we forgot to clean up the changelog --- CHANGELOG.md | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a2f1833..51152c33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,21 +5,6 @@ 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.9.2 - July 09, 2024 - -## dbt-adapters 1.9.1 - June 20, 2024 - -## dbt-adapters 1.9.0 - June 18, 2024 - -## dbt-adapters 1.8.0 - May 09, 2024 - -### Features - -* Cross-database `date` macro - -### Fixes - -* Update Clone test to reflect core change removing `deferred` attribute from nodes ## dbt-adapters 1.3.3 - July 09, 2024 @@ -51,6 +36,11 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Features * Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist +* Cross-database `date` macro + +### Fixes + +* Update Clone test to reflect core change removing `deferred` attribute from nodes ### Under the Hood From 6eb8ec5df336ec94094b5bae4b63ec71a9ac9b3a Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 14:46:44 -0400 Subject: [PATCH 02/15] merge incorrect future version changes back into 1.3.3 --- .changes/1.3.3.md | 5 +++++ .changes/1.8.0.md | 9 --------- .changes/1.9.0.md | 1 - .changes/1.9.1.md | 1 - .changes/1.9.2.md | 1 - 5 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 .changes/1.8.0.md delete mode 100644 .changes/1.9.0.md delete mode 100644 .changes/1.9.1.md delete mode 100644 .changes/1.9.2.md diff --git a/.changes/1.3.3.md b/.changes/1.3.3.md index 22ab18e3..239c7b3b 100644 --- a/.changes/1.3.3.md +++ b/.changes/1.3.3.md @@ -3,6 +3,11 @@ ### Fixes * Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses +* Cross-database `date` macro + +### Fixes + +* Update Clone test to reflect core change removing `deferred` attribute from nodes ### Under the Hood diff --git a/.changes/1.8.0.md b/.changes/1.8.0.md deleted file mode 100644 index e781a985..00000000 --- a/.changes/1.8.0.md +++ /dev/null @@ -1,9 +0,0 @@ -## dbt-adapters 1.8.0 - May 09, 2024 - -### Features - -* Cross-database `date` macro - -### Fixes - -* Update Clone test to reflect core change removing `deferred` attribute from nodes diff --git a/.changes/1.9.0.md b/.changes/1.9.0.md deleted file mode 100644 index 2f016563..00000000 --- a/.changes/1.9.0.md +++ /dev/null @@ -1 +0,0 @@ -## dbt-adapters 1.9.0 - June 18, 2024 diff --git a/.changes/1.9.1.md b/.changes/1.9.1.md deleted file mode 100644 index 900e6b75..00000000 --- a/.changes/1.9.1.md +++ /dev/null @@ -1 +0,0 @@ -## dbt-adapters 1.9.1 - June 20, 2024 diff --git a/.changes/1.9.2.md b/.changes/1.9.2.md deleted file mode 100644 index 26505f20..00000000 --- a/.changes/1.9.2.md +++ /dev/null @@ -1 +0,0 @@ -## dbt-adapters 1.9.2 - July 09, 2024 From 80e143af7437bd58074aca81fbc280241a66727a Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 14:55:30 -0400 Subject: [PATCH 03/15] move changes into the correct patch files --- .changes/1.2.1.md | 5 +++++ .changes/1.3.3.md | 5 ----- CHANGELOG.md | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.changes/1.2.1.md b/.changes/1.2.1.md index 2aac5674..1d9ef4df 100644 --- a/.changes/1.2.1.md +++ b/.changes/1.2.1.md @@ -3,6 +3,11 @@ ### Features * Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist +* Cross-database `date` macro + +### Fixes + +* Update Clone test to reflect core change removing `deferred` attribute from nodes ### Under the Hood diff --git a/.changes/1.3.3.md b/.changes/1.3.3.md index 239c7b3b..22ab18e3 100644 --- a/.changes/1.3.3.md +++ b/.changes/1.3.3.md @@ -3,11 +3,6 @@ ### Fixes * Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses -* Cross-database `date` macro - -### Fixes - -* Update Clone test to reflect core change removing `deferred` attribute from nodes ### Under the Hood diff --git a/CHANGELOG.md b/CHANGELOG.md index 51152c33..adbb5e23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,6 @@ 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.3.3 - July 09, 2024 ### Fixes From dccdafd378a5cbc6061596c38c8ffdd74c729f9f Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 15:41:07 -0400 Subject: [PATCH 04/15] merge 0.1.0 changes into the 1.0.0 changelog --- .changes/0.1.0/Docs-20240109-131629.yaml | 6 ------ .changes/0.1.0/Docs-20240109-131736.yaml | 6 ------ .changes/0.1.0/Docs-20240109-131858.yaml | 6 ------ .changes/0.1.0/Docs-20240109-131917.yaml | 6 ------ .changes/0.1.0/Features-20240212-123544.yaml | 6 ------ .changes/0.1.0/Fixes-20240215-141545.yaml | 6 ------ .changes/0.1.0/Fixes-20240216-135420.yaml | 6 ------ .../0.1.0/Under the Hood-20240109-131958.yaml | 6 ------ .../0.1.0/Under the Hood-20240112-230236.yaml | 6 ------ .../0.1.0/Under the Hood-20240123-121220.yaml | 6 ------ .../0.1.0/Under the Hood-20240220-164223.yaml | 6 ------ .changes/1.0.0.md | 17 +++++++++++++++++ 12 files changed, 17 insertions(+), 66 deletions(-) delete mode 100644 .changes/0.1.0/Docs-20240109-131629.yaml delete mode 100644 .changes/0.1.0/Docs-20240109-131736.yaml delete mode 100644 .changes/0.1.0/Docs-20240109-131858.yaml delete mode 100644 .changes/0.1.0/Docs-20240109-131917.yaml delete mode 100644 .changes/0.1.0/Features-20240212-123544.yaml delete mode 100644 .changes/0.1.0/Fixes-20240215-141545.yaml delete mode 100644 .changes/0.1.0/Fixes-20240216-135420.yaml delete mode 100644 .changes/0.1.0/Under the Hood-20240109-131958.yaml delete mode 100644 .changes/0.1.0/Under the Hood-20240112-230236.yaml delete mode 100644 .changes/0.1.0/Under the Hood-20240123-121220.yaml delete mode 100644 .changes/0.1.0/Under the Hood-20240220-164223.yaml diff --git a/.changes/0.1.0/Docs-20240109-131629.yaml b/.changes/0.1.0/Docs-20240109-131629.yaml deleted file mode 100644 index 22b2ad3f..00000000 --- a/.changes/0.1.0/Docs-20240109-131629.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Configure `changie` -time: 2024-01-09T13:16:29.763021-05:00 -custom: - Author: mikealfare - Issue: 16 diff --git a/.changes/0.1.0/Docs-20240109-131736.yaml b/.changes/0.1.0/Docs-20240109-131736.yaml deleted file mode 100644 index 43186903..00000000 --- a/.changes/0.1.0/Docs-20240109-131736.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Setup ADR tracking framework -time: 2024-01-09T13:17:36.094147-05:00 -custom: - Author: mikealfare - Issue: "11" diff --git a/.changes/0.1.0/Docs-20240109-131858.yaml b/.changes/0.1.0/Docs-20240109-131858.yaml deleted file mode 100644 index decef9a7..00000000 --- a/.changes/0.1.0/Docs-20240109-131858.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Create issue templates -time: 2024-01-09T13:18:58.11819-05:00 -custom: - Author: mikealfare - Issue: "12" diff --git a/.changes/0.1.0/Docs-20240109-131917.yaml b/.changes/0.1.0/Docs-20240109-131917.yaml deleted file mode 100644 index 3c531060..00000000 --- a/.changes/0.1.0/Docs-20240109-131917.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Create PR template -time: 2024-01-09T13:19:17.749914-05:00 -custom: - Author: mikealfare - Issue: "13" diff --git a/.changes/0.1.0/Features-20240212-123544.yaml b/.changes/0.1.0/Features-20240212-123544.yaml deleted file mode 100644 index 239ad59f..00000000 --- a/.changes/0.1.0/Features-20240212-123544.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Update RelationConfig to capture all fields used by adapters -time: 2024-02-12T12:35:44.653555-08:00 -custom: - Author: colin-rogers-dbt - Issue: "30" diff --git a/.changes/0.1.0/Fixes-20240215-141545.yaml b/.changes/0.1.0/Fixes-20240215-141545.yaml deleted file mode 100644 index ced62f25..00000000 --- a/.changes/0.1.0/Fixes-20240215-141545.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Ignore adapter-level support warnings for 'custom' constraints -time: 2024-02-15T14:15:45.764145+01:00 -custom: - Author: jtcohen6 - Issue: "90" diff --git a/.changes/0.1.0/Fixes-20240216-135420.yaml b/.changes/0.1.0/Fixes-20240216-135420.yaml deleted file mode 100644 index a04cd26b..00000000 --- a/.changes/0.1.0/Fixes-20240216-135420.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Make all adapter zone tests importable by removing "Test" prefix -time: 2024-02-16T13:54:20.411864-05:00 -custom: - Author: mikealfare - Issue: "93" diff --git a/.changes/0.1.0/Under the Hood-20240109-131958.yaml b/.changes/0.1.0/Under the Hood-20240109-131958.yaml deleted file mode 100644 index a062a299..00000000 --- a/.changes/0.1.0/Under the Hood-20240109-131958.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Configure `dependabot` -time: 2024-01-09T13:19:58.060742-05:00 -custom: - Author: mikealfare - Issue: "14" diff --git a/.changes/0.1.0/Under the Hood-20240112-230236.yaml b/.changes/0.1.0/Under the Hood-20240112-230236.yaml deleted file mode 100644 index 1470ac6e..00000000 --- a/.changes/0.1.0/Under the Hood-20240112-230236.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Implement unit testing in CI -time: 2024-01-12T23:02:36.630106-05:00 -custom: - Author: mikealfare - Issue: "10" diff --git a/.changes/0.1.0/Under the Hood-20240123-121220.yaml b/.changes/0.1.0/Under the Hood-20240123-121220.yaml deleted file mode 100644 index 8d01f256..00000000 --- a/.changes/0.1.0/Under the Hood-20240123-121220.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Allow version to be specified in either __version__.py or __about__.py -time: 2024-01-23T12:12:20.529147-05:00 -custom: - Author: mikealfare - Issue: "44" diff --git a/.changes/0.1.0/Under the Hood-20240220-164223.yaml b/.changes/0.1.0/Under the Hood-20240220-164223.yaml deleted file mode 100644 index eefa441e..00000000 --- a/.changes/0.1.0/Under the Hood-20240220-164223.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove __init__.py file from dbt.tests -time: 2024-02-20T16:42:23.706-05:00 -custom: - Author: gshank - Issue: "96" diff --git a/.changes/1.0.0.md b/.changes/1.0.0.md index d381d635..3b37a873 100644 --- a/.changes/1.0.0.md +++ b/.changes/1.0.0.md @@ -1,14 +1,31 @@ ## dbt-adapters 1.0.0 - April 01, 2024 +### Features + +* Update RelationConfig to capture all fields used by adapters + ### Fixes * Add field wrapper to BaseRelation members that were missing it. * Add "description" and "meta" fields to RelationConfig protocol +* Ignore adapter-level support warnings for 'custom' constraints +* Make all adapter zone tests importable by removing "Test" prefix + +### Docs + +* Configure `changie` +* Setup ADR tracking framework +* Create issue templates +* Create PR template ### Under the Hood * Lazy load agate to improve dbt-core performance * add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS +* Configure `dependabot` +* Implement unit testing in CI +* Allow version to be specified in either __version__.py or __about__.py +* Remove __init__.py file from dbt.tests ### Security From 525af892a77971faa3ea5eff74b51845980dcfdf Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 15:42:00 -0400 Subject: [PATCH 05/15] update the changelog with all 1.0.0 changes --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index adbb5e23..6dce8816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -84,15 +84,32 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ## dbt-adapters 1.0.0 - April 01, 2024 +### Features + +* Update RelationConfig to capture all fields used by adapters + ### Fixes * Add field wrapper to BaseRelation members that were missing it. * Add "description" and "meta" fields to RelationConfig protocol +* Ignore adapter-level support warnings for 'custom' constraints +* Make all adapter zone tests importable by removing "Test" prefix + +### Docs + +* Configure `changie` +* Setup ADR tracking framework +* Create issue templates +* Create PR template ### Under the Hood * Lazy load agate to improve dbt-core performance * add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS +* Configure `dependabot` +* Implement unit testing in CI +* Allow version to be specified in either __version__.py or __about__.py +* Remove __init__.py file from dbt.tests ### Security From eab95262e4cadb15a44631e94467e7ea43e569f0 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 16:01:06 -0400 Subject: [PATCH 06/15] fix changie config --- .changie.yaml | 87 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 22 deletions(-) diff --git a/.changie.yaml b/.changie.yaml index afbafb22..eff3f730 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -1,33 +1,76 @@ changesDir: .changes unreleasedDir: unreleased headerPath: header.tpl.md +versionHeaderPath: "" changelogPath: CHANGELOG.md versionExt: md envPrefix: CHANGIE_ versionFormat: '## dbt-adapters {{.Version}} - {{.Time.Format "January 02, 2006"}}' kindFormat: '### {{.Kind}}' -changeFormat: '* {{.Body}}' +changeFormat: |- + {{- $IssueList := list }} + {{- $changes := splitList " " $.Custom.Issue }} + {{- range $issueNbr := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/issues/nbr)" | replace "nbr" $issueNbr }} + {{- $IssueList = append $IssueList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $IssueList }}{{if $index}}, {{end}}{{$element}}{{end}}) kinds: - - label: Breaking Changes - - label: Features - - label: Fixes - - label: Docs - - label: Under the Hood - - label: Dependencies - - label: Security +- label: Breaking Changes +- label: Features +- label: Fixes +- label: Docs +- label: Under the Hood +- label: Dependencies + changeFormat: |- + {{- $PRList := list }} + {{- $changes := splitList " " $.Custom.PR }} + {{- range $pullrequest := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} + {{- $PRList = append $PRList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) + skipGlobalChoices: true + additionalChoices: + - key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 + - key: PR + label: GitHub Pull Request Number (separated by a single space if multiple) + type: string + minLength: 1 +- label: Security + changeFormat: |- + {{- $PRList := list }} + {{- $changes := splitList " " $.Custom.PR }} + {{- range $pullrequest := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} + {{- $PRList = append $PRList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) + skipGlobalChoices: true + additionalChoices: + - key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 + - key: PR + label: GitHub Pull Request Number (separated by a single space if multiple) + type: string + minLength: 1 newlines: - afterChangelogHeader: 1 - afterKind: 1 - afterChangelogVersion: 1 - beforeKind: 1 - endOfVersion: 1 - + afterChangelogHeader: 1 + afterKind: 1 + afterChangelogVersion: 1 + beforeKind: 1 + endOfVersion: 1 custom: -- key: Author - label: GitHub Username(s) (separated by a single space if multiple) - type: string - minLength: 3 -- key: Issue - label: GitHub Issue Number (separated by a single space if multiple) - type: string - minLength: 1 +- key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 +- key: Issue + label: GitHub Issue Number (separated by a single space if multiple) + type: string + minLength: 1 From e41358f9eeb37c9d5c166bcd1d284bdc59aaa0a6 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Jul 2024 16:02:51 -0400 Subject: [PATCH 07/15] fix changie config --- .changie.yaml | 120 +++++++++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/.changie.yaml b/.changie.yaml index eff3f730..1198cfe0 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -8,69 +8,69 @@ envPrefix: CHANGIE_ versionFormat: '## dbt-adapters {{.Version}} - {{.Time.Format "January 02, 2006"}}' kindFormat: '### {{.Kind}}' changeFormat: |- - {{- $IssueList := list }} - {{- $changes := splitList " " $.Custom.Issue }} - {{- range $issueNbr := $changes }} - {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/issues/nbr)" | replace "nbr" $issueNbr }} - {{- $IssueList = append $IssueList $changeLink }} - {{- end -}} - - {{.Body}} ({{ range $index, $element := $IssueList }}{{if $index}}, {{end}}{{$element}}{{end}}) + {{- $IssueList := list }} + {{- $changes := splitList " " $.Custom.Issue }} + {{- range $issueNbr := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/issues/nbr)" | replace "nbr" $issueNbr }} + {{- $IssueList = append $IssueList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $IssueList }}{{if $index}}, {{end}}{{$element}}{{end}}) kinds: -- label: Breaking Changes -- label: Features -- label: Fixes -- label: Docs -- label: Under the Hood -- label: Dependencies - changeFormat: |- - {{- $PRList := list }} - {{- $changes := splitList " " $.Custom.PR }} - {{- range $pullrequest := $changes }} - {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} - {{- $PRList = append $PRList $changeLink }} - {{- end -}} - - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) - skipGlobalChoices: true - additionalChoices: - - key: Author - label: GitHub Username(s) (separated by a single space if multiple) - type: string - minLength: 3 - - key: PR - label: GitHub Pull Request Number (separated by a single space if multiple) - type: string - minLength: 1 -- label: Security - changeFormat: |- - {{- $PRList := list }} - {{- $changes := splitList " " $.Custom.PR }} - {{- range $pullrequest := $changes }} - {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} - {{- $PRList = append $PRList $changeLink }} - {{- end -}} - - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) - skipGlobalChoices: true - additionalChoices: - - key: Author - label: GitHub Username(s) (separated by a single space if multiple) - type: string - minLength: 3 - - key: PR - label: GitHub Pull Request Number (separated by a single space if multiple) - type: string - minLength: 1 -newlines: - afterChangelogHeader: 1 - afterKind: 1 - afterChangelogVersion: 1 - beforeKind: 1 - endOfVersion: 1 -custom: -- key: Author +- label: Breaking Changes +- label: Features +- label: Fixes +- label: Docs +- label: Under the Hood +- label: Dependencies + changeFormat: |- + {{- $PRList := list }} + {{- $changes := splitList " " $.Custom.PR }} + {{- range $pullrequest := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} + {{- $PRList = append $PRList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) + skipGlobalChoices: true + additionalChoices: + - key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 + - key: PR + label: GitHub Pull Request Number (separated by a single space if multiple) + type: string + minLength: 1 +- label: Security + changeFormat: |- + {{- $PRList := list }} + {{- $changes := splitList " " $.Custom.PR }} + {{- range $pullrequest := $changes }} + {{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-adapters/pull/nbr)" | replace "nbr" $pullrequest }} + {{- $PRList = append $PRList $changeLink }} + {{- end -}} + - {{.Body}} ({{ range $index, $element := $PRList }}{{if $index}}, {{end}}{{$element}}{{end}}) + skipGlobalChoices: true + additionalChoices: + - key: Author label: GitHub Username(s) (separated by a single space if multiple) type: string minLength: 3 -- key: Issue - label: GitHub Issue Number (separated by a single space if multiple) + - key: PR + label: GitHub Pull Request Number (separated by a single space if multiple) type: string minLength: 1 +newlines: + afterChangelogHeader: 1 + afterKind: 1 + afterChangelogVersion: 1 + beforeKind: 1 + endOfVersion: 1 +custom: +- key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 +- key: Issue + label: GitHub Issue Number (separated by a single space if multiple) + type: string + minLength: 1 From fd3a0c891d689f341189301bd9f44c7429711be2 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:30:34 -0600 Subject: [PATCH 08/15] Add links to changelog for dbt-adapters 1.3.3 --- .changes/1.3.3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changes/1.3.3.md b/.changes/1.3.3.md index 22ab18e3..c62a0562 100644 --- a/.changes/1.3.3.md +++ b/.changes/1.3.3.md @@ -2,8 +2,8 @@ ### Fixes -* Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses +* Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses ([#213](https://github.com/dbt-labs/dbt-adapters/issues/213)) ### Under the Hood -* --limit flag no longer subshells the query. This resolves the dbt Cloud experience issue where limit prevents ordering elements.. +* --limit flag no longer subshells the query. This resolves the dbt Cloud experience issue where limit prevents ordering elements.. ([#207](https://github.com/dbt-labs/dbt-adapters/issues/207)) From 6655d27f3a85174e70abfca575048649c52be686 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:33:48 -0600 Subject: [PATCH 09/15] Add links to changelog for dbt-adapters 1.3.2 --- .changes/1.3.2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changes/1.3.2.md b/.changes/1.3.2.md index bdc7f593..6963a4c3 100644 --- a/.changes/1.3.2.md +++ b/.changes/1.3.2.md @@ -2,5 +2,5 @@ ### Under the Hood -* Fix query timer resolution -* Add optional release_connection parameter to connection_named method +* Fix query timer resolution ([#246](https://github.com/dbt-labs/dbt-adapters/issues/246)) +* Add optional release_connection parameter to connection_named method ([#247](https://github.com/dbt-labs/dbt-adapters/issues/247)) From e4e542331b55091586bcbbe40623211405e07726 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:37:47 -0600 Subject: [PATCH 10/15] Add links to changelog for dbt-adapters 1.3.0 --- .changes/1.3.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changes/1.3.0.md b/.changes/1.3.0.md index dae1f819..6a23c3ba 100644 --- a/.changes/1.3.0.md +++ b/.changes/1.3.0.md @@ -2,4 +2,4 @@ ### Features -* Add get_catalog_for_single_relation macro and capability to enable adapters to optimize catalog generation +* Add get_catalog_for_single_relation macro and capability to enable adapters to optimize catalog generation ([#231](https://github.com/dbt-labs/dbt-adapters/issues/231)) From c3b5b93e43eeb6673ad6223bfea1901e26075620 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:42:36 -0600 Subject: [PATCH 11/15] Add links to changelog for dbt-adapters 1.2.1 --- .changes/1.2.1.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.changes/1.2.1.md b/.changes/1.2.1.md index 1d9ef4df..e554b90b 100644 --- a/.changes/1.2.1.md +++ b/.changes/1.2.1.md @@ -2,14 +2,14 @@ ### Features -* Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist -* Cross-database `date` macro +* Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist ([#203](https://github.com/dbt-labs/dbt-adapters/issues/203)) +* Cross-database `date` macro ([#191](https://github.com/dbt-labs/dbt-adapters/issues/191)) ### Fixes -* Update Clone test to reflect core change removing `deferred` attribute from nodes +* Update Clone test to reflect core change removing `deferred` attribute from nodes ([#194](https://github.com/dbt-labs/dbt-adapters/issues/194)) ### Under the Hood -* Add query recording for adapters which use SQLConnectionManager -* Improve memory efficiency of process_results() +* Add query recording for adapters which use SQLConnectionManager ([#195](https://github.com/dbt-labs/dbt-adapters/issues/195)) +* Improve memory efficiency of process_results() ([#217](https://github.com/dbt-labs/dbt-adapters/issues/217)) From 2e39dda9cf0c49e8a2cfc37c7aad685afee97154 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:48:04 -0600 Subject: [PATCH 12/15] Add links to changelog for dbt-adapters 1.1.1 --- .changes/1.1.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changes/1.1.1.md b/.changes/1.1.1.md index a1c38c88..9e590f94 100644 --- a/.changes/1.1.1.md +++ b/.changes/1.1.1.md @@ -2,4 +2,4 @@ ### Features -* Enable serialization contexts +* Enable serialization contexts ([#197](https://github.com/dbt-labs/dbt-adapters/issues/197)) From 1f67ecc228d76a9a9b9cf815a470abfb0051f6bf Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:02:23 -0600 Subject: [PATCH 13/15] Add links to changelog for dbt-adapters 1.1.0 --- .changes/1.1.0.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.changes/1.1.0.md b/.changes/1.1.0.md index 9e7db78e..224d8e85 100644 --- a/.changes/1.1.0.md +++ b/.changes/1.1.0.md @@ -2,28 +2,28 @@ ### Features -* Debug log when `type_code` fails to convert to a `data_type` -* Introduce TableLastModifiedMetadataBatch and implement BaseAdapter.calculate_freshness_from_metadata_batch -* Support for sql fixtures in unit testing -* Cross-database `cast` macro -* Allow adapters to opt out of aliasing the subquery generated by render_limited -* subquery alias generated by render_limited now includes the relation name to mitigate duplicate aliasing +* Debug log when `type_code` fails to convert to a `data_type` ([#135](https://github.com/dbt-labs/dbt-adapters/issues/135)) +* Introduce TableLastModifiedMetadataBatch and implement BaseAdapter.calculate_freshness_from_metadata_batch ([#127](https://github.com/dbt-labs/dbt-adapters/issues/127)) +* Support for sql fixtures in unit testing ([#146](https://github.com/dbt-labs/dbt-adapters/issues/146)) +* Cross-database `cast` macro ([#173](https://github.com/dbt-labs/dbt-adapters/issues/173)) +* Allow adapters to opt out of aliasing the subquery generated by render_limited ([#179](https://github.com/dbt-labs/dbt-adapters/issues/179)) +* subquery alias generated by render_limited now includes the relation name to mitigate duplicate aliasing ([#179](https://github.com/dbt-labs/dbt-adapters/issues/179)) ### Fixes -* Fix adapter-specific cast handling for constraint enforcement +* Fix adapter-specific cast handling for constraint enforcement ([#165](https://github.com/dbt-labs/dbt-adapters/issues/165)) ### Docs -* Use `dbt-adapters` throughout the contributing guide +* Use `dbt-adapters` throughout the contributing guide ([#137](https://github.com/dbt-labs/dbt-adapters/issues/137)) ### Under the Hood -* Add the option to set the log level of the AdapterRegistered event -* Update dependabot config to cover GHA -* Validate that dbt-core and dbt-adapters remain de-coupled -* remove dbt_version from query comment test fixture +* Add the option to set the log level of the AdapterRegistered event ([#141](https://github.com/dbt-labs/dbt-adapters/issues/141)) +* Update dependabot config to cover GHA ([#161](https://github.com/dbt-labs/dbt-adapters/issues/161)) +* Validate that dbt-core and dbt-adapters remain de-coupled ([#174](https://github.com/dbt-labs/dbt-adapters/issues/174)) +* remove dbt_version from query comment test fixture ([#184](https://github.com/dbt-labs/dbt-adapters/issues/184)) ### Dependencies -* add support for py3.12 +* add support for py3.12 ([#185](https://github.com/dbt-labs/dbt-adapters/issues/185)) From 5aca6fcdbf858fa815bd2060264707308904a718 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:21:24 -0600 Subject: [PATCH 14/15] Add links to changelog for dbt-adapters 1.0.0 --- .changes/1.0.0.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.changes/1.0.0.md b/.changes/1.0.0.md index 3b37a873..c46c8148 100644 --- a/.changes/1.0.0.md +++ b/.changes/1.0.0.md @@ -2,31 +2,31 @@ ### Features -* Update RelationConfig to capture all fields used by adapters +* Update RelationConfig to capture all fields used by adapters ([#30](https://github.com/dbt-labs/dbt-adapters/issues/30)) ### Fixes -* Add field wrapper to BaseRelation members that were missing it. -* Add "description" and "meta" fields to RelationConfig protocol -* Ignore adapter-level support warnings for 'custom' constraints -* Make all adapter zone tests importable by removing "Test" prefix +* Add field wrapper to BaseRelation members that were missing it. ([#108](https://github.com/dbt-labs/dbt-adapters/issues/108)) +* Add "description" and "meta" fields to RelationConfig protocol ([#119](https://github.com/dbt-labs/dbt-adapters/issues/119)) +* Ignore adapter-level support warnings for 'custom' constraints ([#90](https://github.com/dbt-labs/dbt-adapters/issues/90)) +* Make all adapter zone tests importable by removing "Test" prefix ([#93](https://github.com/dbt-labs/dbt-adapters/issues/93)) ### Docs -* Configure `changie` -* Setup ADR tracking framework -* Create issue templates -* Create PR template +* Configure `changie` ([#16](https://github.com/dbt-labs/dbt-adapters/issues/16)) +* Setup ADR tracking framework ([#11](https://github.com/dbt-labs/dbt-adapters/issues/11)) +* Create issue templates ([#12](https://github.com/dbt-labs/dbt-adapters/issues/12)) +* Create PR template ([#13](https://github.com/dbt-labs/dbt-adapters/issues/13)) ### Under the Hood -* Lazy load agate to improve dbt-core performance -* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS -* Configure `dependabot` -* Implement unit testing in CI -* Allow version to be specified in either __version__.py or __about__.py -* Remove __init__.py file from dbt.tests +* Lazy load agate to improve dbt-core performance ([#125](https://github.com/dbt-labs/dbt-adapters/issues/125)) +* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS ([#131](https://github.com/dbt-labs/dbt-adapters/issues/131)) +* Configure `dependabot` ([#14](https://github.com/dbt-labs/dbt-adapters/issues/14)) +* Implement unit testing in CI ([#22](https://github.com/dbt-labs/dbt-adapters/issues/22)) +* Allow version to be specified in either __version__.py or __about__.py ([#44](https://github.com/dbt-labs/dbt-adapters/issues/44)) +* Remove __init__.py file from dbt.tests ([#96](https://github.com/dbt-labs/dbt-adapters/issues/96)) ### Security -* Pin `black>=24.3` in `pyproject.toml` +* Pin `black>=24.3` in `pyproject.toml` ([#140](https://github.com/dbt-labs/dbt-adapters/issues/140)) From 31b981b39165b479a36b670c8351901c12237cba Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 18 Jul 2024 16:58:55 -0400 Subject: [PATCH 15/15] run changie merge --- CHANGELOG.md | 80 ++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dce8816..8bd48b5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,18 +9,18 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Fixes -* Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses +* Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses ([#213](https://github.com/dbt-labs/dbt-adapters/issues/213)) ### Under the Hood -* --limit flag no longer subshells the query. This resolves the dbt Cloud experience issue where limit prevents ordering elements.. +* --limit flag no longer subshells the query. This resolves the dbt Cloud experience issue where limit prevents ordering elements.. ([#207](https://github.com/dbt-labs/dbt-adapters/issues/207)) ## dbt-adapters 1.3.2 - July 02, 2024 ### Under the Hood -* Fix query timer resolution -* Add optional release_connection parameter to connection_named method +* Fix query timer resolution ([#246](https://github.com/dbt-labs/dbt-adapters/issues/246)) +* Add optional release_connection parameter to connection_named method ([#247](https://github.com/dbt-labs/dbt-adapters/issues/247)) ## dbt-adapters 1.3.1 - June 20, 2024 @@ -28,89 +28,89 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Features -* Add get_catalog_for_single_relation macro and capability to enable adapters to optimize catalog generation +* Add get_catalog_for_single_relation macro and capability to enable adapters to optimize catalog generation ([#231](https://github.com/dbt-labs/dbt-adapters/issues/231)) ## dbt-adapters 1.2.1 - May 21, 2024 ### Features -* Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist -* Cross-database `date` macro +* Improvement of the compile error message in the get_fixture-sql.sql when the relation or the model not exist ([#203](https://github.com/dbt-labs/dbt-adapters/issues/203)) +* Cross-database `date` macro ([#191](https://github.com/dbt-labs/dbt-adapters/issues/191)) ### Fixes -* Update Clone test to reflect core change removing `deferred` attribute from nodes +* Update Clone test to reflect core change removing `deferred` attribute from nodes ([#194](https://github.com/dbt-labs/dbt-adapters/issues/194)) ### Under the Hood -* Add query recording for adapters which use SQLConnectionManager -* Improve memory efficiency of process_results() +* Add query recording for adapters which use SQLConnectionManager ([#195](https://github.com/dbt-labs/dbt-adapters/issues/195)) +* Improve memory efficiency of process_results() ([#217](https://github.com/dbt-labs/dbt-adapters/issues/217)) ## dbt-adapters 1.1.1 - May 07, 2024 ### Features -* Enable serialization contexts +* Enable serialization contexts ([#197](https://github.com/dbt-labs/dbt-adapters/issues/197)) ## dbt-adapters 1.1.0 - May 01, 2024 ### Features -* Debug log when `type_code` fails to convert to a `data_type` -* Introduce TableLastModifiedMetadataBatch and implement BaseAdapter.calculate_freshness_from_metadata_batch -* Support for sql fixtures in unit testing -* Cross-database `cast` macro -* Allow adapters to opt out of aliasing the subquery generated by render_limited -* subquery alias generated by render_limited now includes the relation name to mitigate duplicate aliasing +* Debug log when `type_code` fails to convert to a `data_type` ([#135](https://github.com/dbt-labs/dbt-adapters/issues/135)) +* Introduce TableLastModifiedMetadataBatch and implement BaseAdapter.calculate_freshness_from_metadata_batch ([#127](https://github.com/dbt-labs/dbt-adapters/issues/127)) +* Support for sql fixtures in unit testing ([#146](https://github.com/dbt-labs/dbt-adapters/issues/146)) +* Cross-database `cast` macro ([#173](https://github.com/dbt-labs/dbt-adapters/issues/173)) +* Allow adapters to opt out of aliasing the subquery generated by render_limited ([#179](https://github.com/dbt-labs/dbt-adapters/issues/179)) +* subquery alias generated by render_limited now includes the relation name to mitigate duplicate aliasing ([#179](https://github.com/dbt-labs/dbt-adapters/issues/179)) ### Fixes -* Fix adapter-specific cast handling for constraint enforcement +* Fix adapter-specific cast handling for constraint enforcement ([#165](https://github.com/dbt-labs/dbt-adapters/issues/165)) ### Docs -* Use `dbt-adapters` throughout the contributing guide +* Use `dbt-adapters` throughout the contributing guide ([#137](https://github.com/dbt-labs/dbt-adapters/issues/137)) ### Under the Hood -* Add the option to set the log level of the AdapterRegistered event -* Update dependabot config to cover GHA -* Validate that dbt-core and dbt-adapters remain de-coupled -* remove dbt_version from query comment test fixture +* Add the option to set the log level of the AdapterRegistered event ([#141](https://github.com/dbt-labs/dbt-adapters/issues/141)) +* Update dependabot config to cover GHA ([#161](https://github.com/dbt-labs/dbt-adapters/issues/161)) +* Validate that dbt-core and dbt-adapters remain de-coupled ([#174](https://github.com/dbt-labs/dbt-adapters/issues/174)) +* remove dbt_version from query comment test fixture ([#184](https://github.com/dbt-labs/dbt-adapters/issues/184)) ### Dependencies -* add support for py3.12 +* add support for py3.12 ([#185](https://github.com/dbt-labs/dbt-adapters/issues/185)) ## dbt-adapters 1.0.0 - April 01, 2024 ### Features -* Update RelationConfig to capture all fields used by adapters +* Update RelationConfig to capture all fields used by adapters ([#30](https://github.com/dbt-labs/dbt-adapters/issues/30)) ### Fixes -* Add field wrapper to BaseRelation members that were missing it. -* Add "description" and "meta" fields to RelationConfig protocol -* Ignore adapter-level support warnings for 'custom' constraints -* Make all adapter zone tests importable by removing "Test" prefix +* Add field wrapper to BaseRelation members that were missing it. ([#108](https://github.com/dbt-labs/dbt-adapters/issues/108)) +* Add "description" and "meta" fields to RelationConfig protocol ([#119](https://github.com/dbt-labs/dbt-adapters/issues/119)) +* Ignore adapter-level support warnings for 'custom' constraints ([#90](https://github.com/dbt-labs/dbt-adapters/issues/90)) +* Make all adapter zone tests importable by removing "Test" prefix ([#93](https://github.com/dbt-labs/dbt-adapters/issues/93)) ### Docs -* Configure `changie` -* Setup ADR tracking framework -* Create issue templates -* Create PR template +* Configure `changie` ([#16](https://github.com/dbt-labs/dbt-adapters/issues/16)) +* Setup ADR tracking framework ([#11](https://github.com/dbt-labs/dbt-adapters/issues/11)) +* Create issue templates ([#12](https://github.com/dbt-labs/dbt-adapters/issues/12)) +* Create PR template ([#13](https://github.com/dbt-labs/dbt-adapters/issues/13)) ### Under the Hood -* Lazy load agate to improve dbt-core performance -* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS -* Configure `dependabot` -* Implement unit testing in CI -* Allow version to be specified in either __version__.py or __about__.py -* Remove __init__.py file from dbt.tests +* Lazy load agate to improve dbt-core performance ([#125](https://github.com/dbt-labs/dbt-adapters/issues/125)) +* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS ([#131](https://github.com/dbt-labs/dbt-adapters/issues/131)) +* Configure `dependabot` ([#14](https://github.com/dbt-labs/dbt-adapters/issues/14)) +* Implement unit testing in CI ([#22](https://github.com/dbt-labs/dbt-adapters/issues/22)) +* Allow version to be specified in either __version__.py or __about__.py ([#44](https://github.com/dbt-labs/dbt-adapters/issues/44)) +* Remove __init__.py file from dbt.tests ([#96](https://github.com/dbt-labs/dbt-adapters/issues/96)) ### Security -* Pin `black>=24.3` in `pyproject.toml` +* Pin `black>=24.3` in `pyproject.toml` ([#140](https://github.com/dbt-labs/dbt-adapters/issues/140))