-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from dbt-labs/monorepo/migrate-dbt-bigquery
ADAP-1130: Migrate dbt-bigquery into dbt-adapters
- Loading branch information
Showing
211 changed files
with
15,677 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,9 @@ cython_debug/ | |
# PyCharm | ||
.idea/ | ||
|
||
# AWS credentials | ||
.aws/ | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
|
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,9 @@ | ||
## Previous Releases | ||
For information on prior major and minor releases, see their changelogs: | ||
- [1.6](https://github.com/dbt-labs/dbt-bigquery/blob/1.6.latest/CHANGELOG.md) | ||
- [1.5](https://github.com/dbt-labs/dbt-bigquery/blob/1.5.latest/CHANGELOG.md) | ||
- [1.4](https://github.com/dbt-labs/dbt-bigquery/blob/1.4.latest/CHANGELOG.md) | ||
- [1.3](https://github.com/dbt-labs/dbt-bigquery/blob/1.3.latest/CHANGELOG.md) | ||
- [1.2](https://github.com/dbt-labs/dbt-bigquery/blob/1.2.latest/CHANGELOG.md) | ||
- [1.1](https://github.com/dbt-labs/dbt-bigquery/blob/1.1.latest/CHANGELOG.md) | ||
- [1.0](https://github.com/dbt-labs/dbt-bigquery/blob/1.0.latest/CHANGELOG.md) |
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 @@ | ||
# CHANGELOG | ||
|
||
To view information about the changelog operation we suggest reading this [README](https://github.com/dbt-labs/dbt-bigquery/blob/main/.changes/README.md) found in `dbt-bigquery`. |
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 @@ | ||
# dbt-bigquery Changelog | ||
|
||
- This file provides a full account of all changes to `dbt-bigquery`. | ||
- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. | ||
- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. | ||
- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-bigquery/blob/main/CONTRIBUTING.md#adding-changelog-entry) |
Empty file.
6 changes: 6 additions & 0 deletions
6
dbt-bigquery/.changes/unreleased/Features-20241202-223835.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: Features | ||
body: Allow copy_partitions in microbatch | ||
time: 2024-12-02T22:38:35.479052Z | ||
custom: | ||
Author: borjavb | ||
Issue: "1414" |
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,7 @@ | ||
kind: Fixes | ||
body: Fix issue where dbt-bigquery was not retrying in certain retryable scenarios, | ||
e.g. 503's | ||
time: 2024-11-20T16:31:01.60689-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "682" |
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,7 @@ | ||
kind: Fixes | ||
body: Cast `event_time` to a timestamp prior to comparing against microbatch start/end | ||
time | ||
time: 2024-12-04T10:58:46.573608-05:00 | ||
custom: | ||
Author: michelleark | ||
Issue: "1422" |
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: Fixes | ||
body: Fix issue where rate limit errors on table service calls are not retried | ||
time: 2024-12-05T13:36:06.436005-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "1423" |
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: Fixes | ||
body: Fix retry scenarios so that dbt always retries when BigQuery recommends a retry | ||
time: 2024-12-11T14:47:52.36905-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "263" |
6 changes: 6 additions & 0 deletions
6
dbt-bigquery/.changes/unreleased/Under the Hood-20241117-194746.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: Move from setup.py to pyproject.toml and to hatch as a dev tool | ||
time: 2024-11-17T19:47:46.341-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "1407" |
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,131 @@ | ||
changesDir: .changes | ||
unreleasedDir: unreleased | ||
headerPath: header.tpl.md | ||
versionHeaderPath: "" | ||
changelogPath: CHANGELOG.md | ||
versionExt: md | ||
envPrefix: "CHANGIE_" | ||
versionFormat: '## dbt-bigquery {{.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-bigquery/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-bigquery/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-bigquery/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-bigquery/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-bigquery/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 }} |
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,16 @@ | ||
# dbt-bigquery Changelog | ||
|
||
- This file provides a full account of all changes to `dbt-bigquery`. | ||
- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. | ||
- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. | ||
- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-bigquery/blob/main/CONTRIBUTING.md#adding-changelog-entry) | ||
|
||
## Previous Releases | ||
For information on prior major and minor releases, see their changelogs: | ||
- [1.6](https://github.com/dbt-labs/dbt-bigquery/blob/1.6.latest/CHANGELOG.md) | ||
- [1.5](https://github.com/dbt-labs/dbt-bigquery/blob/1.5.latest/CHANGELOG.md) | ||
- [1.4](https://github.com/dbt-labs/dbt-bigquery/blob/1.4.latest/CHANGELOG.md) | ||
- [1.3](https://github.com/dbt-labs/dbt-bigquery/blob/1.3.latest/CHANGELOG.md) | ||
- [1.2](https://github.com/dbt-labs/dbt-bigquery/blob/1.2.latest/CHANGELOG.md) | ||
- [1.1](https://github.com/dbt-labs/dbt-bigquery/blob/1.1.latest/CHANGELOG.md) | ||
- [1.0](https://github.com/dbt-labs/dbt-bigquery/blob/1.0.latest/CHANGELOG.md) |
Oops, something went wrong.