-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into colin-rogers-dbt-patch-1
- Loading branch information
Showing
259 changed files
with
20,380 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Previous Releases | ||
For information on prior major and minor releases, see their changelogs: | ||
- [1.8](https://github.com/dbt-labs/dbt-postgres/blob/1.8.latest/CHANGELOG.md) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## dbt-postgres 1.9.0 - December 09, 2024 | ||
|
||
### Breaking Changes | ||
|
||
- Drop support for Python 3.8 ([#161](https://github.com/dbt-labs/dbt-postgres/issues/161)) | ||
|
||
### Features | ||
|
||
- Add tests for cross-database `cast` macro ([#76](https://github.com/dbt-labs/dbt-postgres/issues/76)) | ||
- Cross-database `date` macro ([#82](https://github.com/dbt-labs/dbt-postgres/issues/82)) | ||
- Add support for Python 3.12 ([#17](https://github.com/dbt-labs/dbt-postgres/issues/17)) | ||
- Allow configuring snapshot column names ([#144](https://github.com/dbt-labs/dbt-postgres/issues/144)) | ||
- Microbatch incremental strategy implementation: merge ([#149](https://github.com/dbt-labs/dbt-postgres/issues/149)) | ||
- Enable setting current value of dbt_valid_to ([#151](https://github.com/dbt-labs/dbt-postgres/issues/151)) | ||
|
||
### Fixes | ||
|
||
- Fix the semicolon semantics for indexes while respecting other bug fix ([#85](https://github.com/dbt-labs/dbt-postgres/issues/85)) | ||
- Default to psycopg2-binary and allow overriding to psycopg2 via DBT_PSYCOPG2_NAME (restores previous behavior) ([#96](https://github.com/dbt-labs/dbt-postgres/issues/96)) | ||
- Fix `persist_docs` for `materialized_view` materializations. Previously, using this configuration with materialized view models would lead to an error. ([#120](https://github.com/dbt-labs/dbt-postgres/issues/120)) | ||
|
||
### Under the Hood | ||
|
||
- Add support for experimental record/replay testing. ([#123](https://github.com/dbt-labs/dbt-postgres/issues/123)) | ||
- Updating changie.yaml to add contributors and PR links ([#109](https://github.com/dbt-labs/dbt-postgres/issues/109)) | ||
|
||
### Contributors | ||
- [@dbeatty10](https://github.com/dbeatty10) ([#76](https://github.com/dbt-labs/dbt-postgres/issues/76), [#82](https://github.com/dbt-labs/dbt-postgres/issues/82)) | ||
- [@gshank](https://github.com/gshank) ([#144](https://github.com/dbt-labs/dbt-postgres/issues/144), [#151](https://github.com/dbt-labs/dbt-postgres/issues/151)) | ||
- [@leahwicz](https://github.com/leahwicz) ([#109](https://github.com/dbt-labs/dbt-postgres/issues/109)) | ||
- [@michelleark](https://github.com/michelleark) ([#149](https://github.com/dbt-labs/dbt-postgres/issues/149)) | ||
- [@mikealfare](https://github.com/mikealfare) ([#161](https://github.com/dbt-labs/dbt-postgres/issues/161), [#17](https://github.com/dbt-labs/dbt-postgres/issues/17), [#96](https://github.com/dbt-labs/dbt-postgres/issues/96)) | ||
- [@morsapaes](https://github.com/morsapaes) ([#120](https://github.com/dbt-labs/dbt-postgres/issues/120)) | ||
- [@peterallenwebb](https://github.com/peterallenwebb) ([#123](https://github.com/dbt-labs/dbt-postgres/issues/123)) | ||
- [@versusfacit](https://github.com/versusfacit) ([#85](https://github.com/dbt-labs/dbt-postgres/issues/85)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
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). |
Empty file.
6 changes: 6 additions & 0 deletions
6
dbt-postgres/.changes/unreleased/Under the Hood-20241201-122244.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Migrate to a monorepo in dbt-adapters | ||
time: 2024-12-01T12:22:44.407931-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "176" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
changesDir: .changes | ||
unreleasedDir: unreleased | ||
headerPath: header.tpl.md | ||
versionHeaderPath: "" | ||
changelogPath: CHANGELOG.md | ||
versionExt: md | ||
envPrefix: "CHANGIE_" | ||
versionFormat: '## dbt-postgres {{.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-postgres/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: Under the Hood | ||
- label: Dependencies | ||
changeFormat: |- | ||
{{- $PRList := list }} | ||
{{- $changes := splitList " " $.Custom.PR }} | ||
{{- range $pullrequest := $changes }} | ||
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-postgres/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-postgres/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: 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 | ||
|
||
|
||
footerFormat: | | ||
{{- $contributorDict := dict }} | ||
{{- /* ensure all names in this list are all lowercase for later matching purposes */}} | ||
{{- $core_team := splitList " " .Env.CORE_TEAM }} | ||
{{- /* ensure we always skip snyk and dependabot in addition to the core team */}} | ||
{{- $maintainers := list "dependabot[bot]" "snyk-bot"}} | ||
{{- range $team_member := $core_team }} | ||
{{- $team_member_lower := lower $team_member }} | ||
{{- $maintainers = append $maintainers $team_member_lower }} | ||
{{- end }} | ||
{{- range $change := .Changes }} | ||
{{- $authorList := splitList " " $change.Custom.Author }} | ||
{{- /* loop through all authors for a single changelog */}} | ||
{{- range $author := $authorList }} | ||
{{- $authorLower := lower $author }} | ||
{{- /* we only want to include non-core team contributors */}} | ||
{{- if not (has $authorLower $maintainers)}} | ||
{{- $changeList := splitList " " $change.Custom.Author }} | ||
{{- $IssueList := list }} | ||
{{- $changeLink := $change.Kind }} | ||
{{- if or (eq $change.Kind "Dependencies") (eq $change.Kind "Security") }} | ||
{{- $changes := splitList " " $change.Custom.PR }} | ||
{{- range $issueNbr := $changes }} | ||
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-postgres/pull/nbr)" | replace "nbr" $issueNbr }} | ||
{{- $IssueList = append $IssueList $changeLink }} | ||
{{- end -}} | ||
{{- else }} | ||
{{- $changes := splitList " " $change.Custom.Issue }} | ||
{{- range $issueNbr := $changes }} | ||
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-postgres/issues/nbr)" | replace "nbr" $issueNbr }} | ||
{{- $IssueList = append $IssueList $changeLink }} | ||
{{- end -}} | ||
{{- end }} | ||
{{- /* check if this contributor has other changes associated with them already */}} | ||
{{- if hasKey $contributorDict $author }} | ||
{{- $contributionList := get $contributorDict $author }} | ||
{{- $contributionList = concat $contributionList $IssueList }} | ||
{{- $contributorDict := set $contributorDict $author $contributionList }} | ||
{{- else }} | ||
{{- $contributionList := $IssueList }} | ||
{{- $contributorDict := set $contributorDict $author $contributionList }} | ||
{{- end }} | ||
{{- end}} | ||
{{- end}} | ||
{{- end }} | ||
{{- /* no indentation here for formatting so the final markdown doesn't have unneeded indentations */}} | ||
{{- if $contributorDict}} | ||
### Contributors | ||
{{- range $k,$v := $contributorDict }} | ||
- [@{{$k}}](https://github.com/{{$k}}) ({{ range $index, $element := $v }}{{if $index}}, {{end}}{{$element}}{{end}}) | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.