Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADAP-1131: Migrate dbt-redshift into dbt-adapters #610

Open
wants to merge 680 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
680 commits
Select commit Hold shift + click to select a range
c4d44b2
update to retrieve contract enforced from dict (#383)
emmyoop Mar 28, 2023
97b7340
Update pytz requirement from ~=2022.7 to ~=2023.2 (#384)
dependabot[bot] Mar 29, 2023
a9ae7ef
Update types-pytz requirement from ~=2022.7 to ~=2023.2 (#385)
dependabot[bot] Mar 29, 2023
b2c8039
Bumping version to 1.5.0b4 and generate changelog
FishtownBuildBot Mar 30, 2023
2bf02c1
[Automated] Merged prep-release/1.5.0b4_4567977792 into target main d…
FishtownBuildBot Mar 30, 2023
0682959
Test conversion for simple snapshot into a functional test (#397)
nssalian Apr 7, 2023
d348945
Model-Level Constraints (#395)
peterallenwebb Apr 11, 2023
5da1e4e
Repair accidental change to dev-requirements (#404)
peterallenwebb Apr 11, 2023
6faee98
fix the json obj in msgs bug for both text and Json logs (#398)
VersusFacit Apr 11, 2023
ee1d08d
update to generalize constraints (#393)
emmyoop Apr 11, 2023
6254b0f
Cleanup main after cutting new 1.5.latest branch (#407)
FishtownBuildBot Apr 14, 2023
2f2f095
[create-pull-request] automated change (#411)
github-actions[bot] Apr 18, 2023
e31b4ba
revert changes to point to 1.4.latest (#412)
emmyoop Apr 19, 2023
abc7368
Update pip-tools requirement from ~=6.12 to ~=6.13 (#400)
dependabot[bot] Apr 21, 2023
f059c25
Update pytest requirement from ~=7.2 to ~=7.3 (#414)
mikealfare Apr 21, 2023
ed8983b
Bump mypy from 1.1.1 to 1.2.0 (#396)
dependabot[bot] Apr 21, 2023
be47aba
Update types-pytz requirement from ~=2023.2 to ~=2023.3 (#391)
dependabot[bot] Apr 21, 2023
c811a1d
Update pytz requirement from ~=2023.2 to ~=2023.3 (#390)
dependabot[bot] Apr 21, 2023
e178459
Update black requirement from ~=23.1 to ~=23.3 (#389)
dependabot[bot] Apr 21, 2023
aa98c95
Update tox requirement from ~=3.0 to ~=4.5 (#416)
dependabot[bot] Apr 25, 2023
b644963
Fix for #419: dbt-redshift 1.5 does not work with non-standard redshi…
nssalian Apr 28, 2023
2c52b30
update used gh actions ahead of set-output, node12 deprecation (#418)
davidbloss May 5, 2023
52a666e
Fix execute signature based on core (#435)
nssalian May 9, 2023
2e97dcb
Bumping version to 1.6.0b1 and generate changelog
FishtownBuildBot May 12, 2023
adf0353
[Automated] Merged prep-release/1.6.0b1_4962130872 into target main d…
FishtownBuildBot May 12, 2023
b6ea1d6
more github deprecations fixes (#440)
emmyoop May 15, 2023
272a19e
updating set-output (#450)
emmyoop May 16, 2023
a406b3a
update used gh actions ahead of node12 deprecation (#453)
davidbloss May 17, 2023
d13a376
Add autocommit feature to let dbt users run certain db commands in ma…
VersusFacit May 23, 2023
c12b625
Default connect_timeout to None (#433)
jiezhen-chen May 24, 2023
adb4482
Escape `%` symbols in table/view/column comments (#466)
dbeatty10 May 25, 2023
1b4cf0c
Use smaller batch size for seeds (#468)
dbeatty10 May 25, 2023
fdbf78a
Bumping version to 1.6.0b2 and generate changelog
FishtownBuildBot May 25, 2023
078cd38
[Automated] Merged prep-release/1.6.0b2_5082251484 into target main d…
FishtownBuildBot May 25, 2023
5af296c
convert to reusable nightly tests (#459)
emmyoop May 26, 2023
85c1d19
drop support for py37 (#474)
mikealfare May 30, 2023
a37f8f6
ADAP-512: sslmode translation (#473)
mikealfare May 31, 2023
c665456
adding link to 1.5 release notes (#472)
McKnight-42 May 31, 2023
876076b
Restore transaction semantics used by dbt-redshift prior to 1.5 (#475)
VersusFacit Jun 1, 2023
491611b
testing constraint rendering fixes (#430)
MichelleArk Jun 2, 2023
8f71a52
Standardize the adapter for core debug changes. (#478)
VersusFacit Jun 7, 2023
722abd6
re-pointing reelease branch env for nightly releases to a .latest bra…
McKnight-42 Jun 7, 2023
36daba2
migrate redshift__list_relations_without_caching off postgres depende…
colin-rogers-dbt Jun 9, 2023
5a1f698
Bumping version to 1.6.0b3 and generate changelog
FishtownBuildBot Jun 9, 2023
b4296f6
[Automated] Merged prep-release/1.6.0b3_5224045905 into target main d…
FishtownBuildBot Jun 9, 2023
df8a9ab
Test dbt-core#7537 (#437)
jtcohen6 Jun 14, 2023
cbb45ca
Pass `region` param on to redshift conn as is (#485)
colin-rogers-dbt Jun 14, 2023
b244c3a
Revert "Escape `%` symbols in table/view/column comments (#466)" (#495)
dbeatty10 Jun 15, 2023
592905e
Update setup.py (#493)
dataders Jun 15, 2023
97e265a
add dependent_projects_dict to utils.py (#500)
colin-rogers-dbt Jun 16, 2023
ed833b1
Bumping version to 1.6.0b4 and generate changelog
FishtownBuildBot Jun 16, 2023
d82010e
[Automated] Merged prep-release/1.6.0b4_5292478535 into target main d…
FishtownBuildBot Jun 16, 2023
cf37fa2
ADAP-2: Materialized Views (#386)
mikealfare Jun 23, 2023
befecc1
Bumping version to 1.6.0b5 and generate changelog
FishtownBuildBot Jun 23, 2023
4e46014
[Automated] Merged prep-release/1.6.0b5_5360441442 into target main d…
FishtownBuildBot Jun 23, 2023
36bed56
Bump mypy from 1.2.0 to 1.4.0 (#503)
dependabot[bot] Jun 24, 2023
99d8d9a
Update types-requests requirement from ~=2.28 to ~=2.31 (#461)
dependabot[bot] Jun 24, 2023
f99a9f3
Update pre-commit requirement from ~=2.21 to ~=3.3 (#426)
dependabot[bot] Jun 26, 2023
8d8c1b8
Update tox requirement from ~=4.5 to ~=4.6 (#481)
dependabot[bot] Jun 26, 2023
b8034ba
Update pytest-xdist requirement from ~=3.2 to ~=3.3 (#449)
dependabot[bot] Jun 26, 2023
405917d
Bump mypy from 1.4.0 to 1.4.1 (#508)
dependabot[bot] Jun 27, 2023
f46e545
Update pytest requirement from ~=7.3 to ~=7.4 (#507)
dependabot[bot] Jun 27, 2023
607c309
remove dependent_projects argument from PartialProject call in unit t…
mikealfare Jun 28, 2023
2ee53d3
Add new `defer_relation` argument to `mock_model` (#520)
mikealfare Jul 6, 2023
6254fdd
Update pip-tools requirement from ~=6.13 to ~=6.14 (#517)
dependabot[bot] Jul 6, 2023
919b391
cast port as integer (#523)
jiezhen-chen Jul 6, 2023
1f1e863
update pr template
Jul 10, 2023
693adb7
fix whitespace change (#528)
McKnight-42 Jul 11, 2023
0024261
initial implementation of redshift dbt_clone macros and test design a…
McKnight-42 Jul 11, 2023
92dbeb6
Override list_relations_without_caching (#428)
jiezhen-chen Jul 13, 2023
f8db43a
hard pin to latest compatible version (#530)
dataders Jul 13, 2023
f3da71b
update changelog - this fix does not resolve 217 and 17 (#535)
jiezhen-chen Jul 13, 2023
5958da3
add query commenting back (#537)
dataders Jul 14, 2023
493148e
add merge as a valid incremental strategy (#490)
jiezhen-chen Jul 14, 2023
49b2606
Apply new integration tests to existing framework to identify support…
mikealfare Jul 17, 2023
3a876fc
add datadog env vars (#539)
emmyoop Jul 17, 2023
18c3150
Cleanup main after cutting new 1.6.latest branch (#542)
FishtownBuildBot Jul 18, 2023
a41df68
update stale workflow to use the centralized version (#552)
mikealfare Jul 25, 2023
8b30103
Insert values of `merge_exclude_columns` when not matched (#564)
dbeatty10 Aug 2, 2023
83a0231
Update wheel requirement from ~=0.40 to ~=0.41 (#551)
dependabot[bot] Aug 2, 2023
94ff8ec
Update flake8 requirement from ~=6.0 to ~=6.1 (#562)
dependabot[bot] Aug 2, 2023
4efb30e
Update pip-tools requirement from ~=6.14 to ~=7.0 (#541)
dependabot[bot] Aug 3, 2023
6f31211
Update pip-tools requirement from ~=7.0 to ~=7.2 (#567)
dependabot[bot] Aug 3, 2023
f92fcbd
move alerts (#525)
nathaniel-may Aug 3, 2023
17b2cb5
Update black requirement from ~=23.3 to ~=23.7 (#529)
dependabot[bot] Aug 3, 2023
b86f5a6
Update ddtrace requirement from ~=1.16 to ~=1.17 (#550)
dependabot[bot] Aug 3, 2023
73dfc82
Support DISTSTYLE for seeds (#256)
WillAyd Aug 4, 2023
6920333
Update tox requirement from ~=4.6 to ~=4.7 (#570)
dependabot[bot] Aug 9, 2023
cbb411d
ADAP-761: Add retry logic to flaky MV tests to avoid "cannot open rel…
mikealfare Aug 10, 2023
764f839
Bump mypy from 1.4.1 to 1.5.0 (#573)
dependabot[bot] Aug 11, 2023
89b18e2
Update pip-tools requirement from ~=7.2 to ~=7.3 (#572)
dependabot[bot] Aug 11, 2023
68afcba
add datadog env vars to tox.ini (#576)
mikealfare Aug 11, 2023
ae6609d
Update ddtrace requirement from ~=1.17 to ~=1.18 (#575)
dependabot[bot] Aug 12, 2023
8d66c92
Update tox requirement from ~=4.7 to ~=4.8 (#581)
dependabot[bot] Aug 16, 2023
8eb13b1
split out integration tests to fit on the windows free tier (#582)
mikealfare Aug 16, 2023
41d0799
Update tox requirement from ~=4.8 to ~=4.9 (#586)
dependabot[bot] Aug 16, 2023
47ae94c
Bumping version to 1.7.0b1 and generate changelog
FishtownBuildBot Aug 17, 2023
e5bfa3b
[Automated] Merged prep-release/1.7.0b1_5896240255 into target main d…
FishtownBuildBot Aug 17, 2023
6322063
Auto-refresh on MVs not working as expected (#583)
McKnight-42 Aug 29, 2023
e95685f
Remove import of FieldEncoder from hologram (#592)
gshank Aug 30, 2023
aab62b1
Feature/materialized views/adap 841 (#590)
mikealfare Aug 31, 2023
aaf6c6e
Bump mypy from 1.5.0 to 1.5.1 (#585)
dependabot[bot] Sep 1, 2023
f2ef004
Update tox requirement from ~=4.9 to ~=4.10 (#588)
dependabot[bot] Sep 1, 2023
4c5e49b
change expected_stat types to match agate_helper change in dbt-core (…
McKnight-42 Sep 11, 2023
9effcce
Update tox requirement from ~=4.10 to ~=4.11 (#594)
dependabot[bot] Sep 12, 2023
5f242f6
Update pre-commit requirement from ~=3.3 to ~=3.4 (#596)
dependabot[bot] Sep 12, 2023
538ad79
Update black requirement from ~=23.7 to ~=23.9 (#600)
dependabot[bot] Sep 12, 2023
9bb3883
Fix replace sql macro (#602)
colin-rogers-dbt Sep 12, 2023
56af912
add relation macros and add relation renameable/replaceable config (#…
colin-rogers-dbt Sep 13, 2023
b84691d
allow for bool/str input to backup/autorefresh when configuring mater…
colin-rogers-dbt Sep 15, 2023
2b5c446
Update Fixes-20230912-133327.yaml (#607)
colin-rogers-dbt Sep 15, 2023
893e58e
Update Under the Hood-20230914-135547.yaml (#608)
colin-rogers-dbt Sep 15, 2023
be5b39e
Bumping version to 1.7.0b2 and generate changelog
FishtownBuildBot Sep 15, 2023
08625fe
[Automated] Merged prep-release/1.7.0b2_6201587994 into target main d…
FishtownBuildBot Sep 15, 2023
9385b49
Avoid nested loop in query planner execution (#612)
slin30 Sep 25, 2023
7f73309
automate repo cleanup (#618)
emmyoop Sep 26, 2023
16d86aa
Add tests for `date_spine` macro, and sub macros (#617)
QMalcolm Sep 26, 2023
ca3c7b4
add dbt show tests (#611)
MichelleArk Sep 28, 2023
85d3720
Update ddtrace requirement from ~=1.18 to ~=1.19 (#610)
dependabot[bot] Oct 2, 2023
1116e47
ADAP-891: Support test results as views (#614)
mikealfare Oct 10, 2023
5d4f3f5
Use the PID to terminate the session (#568)
dbeatty10 Oct 11, 2023
b2b6045
Cleanup main after cutting new 1.7.latest branch (#633)
FishtownBuildBot Oct 12, 2023
4213f7d
add docs-issue workflow to dbt-bigquery (#635)
McKnight-42 Oct 13, 2023
fe30bb1
Update redshift-connector requirement from 2.0.913 to 2.0.915 (#601)
soksamnanglim Oct 23, 2023
b4176b9
Fix parsing of database results for materialized view autorefresh (#643)
mikealfare Oct 26, 2023
cf0b649
Update black requirement from ~=23.9 to ~=23.10 (#636)
dependabot[bot] Oct 27, 2023
fc395a7
Update pre-commit requirement from ~=3.4 to ~=3.5 (#634)
dependabot[bot] Oct 27, 2023
2d19711
Bump mypy from 1.5.1 to 1.6.0 (#629)
dependabot[bot] Oct 27, 2023
db161e3
Update pre-commit-hooks requirement from ~=4.4 to ~=4.5 (#627)
dependabot[bot] Oct 27, 2023
001bf6e
Bump mypy from 1.6.0 to 1.6.1 (#648)
dependabot[bot] Oct 27, 2023
d5d2d74
Update ddtrace requirement from ~=1.19 to ~=1.20 (#622)
dependabot[bot] Oct 27, 2023
969eaa6
allow user to set debug level via env var (#650)
colin-rogers-dbt Oct 30, 2023
99c9d2a
ADAP-973: Fix issue where materialized views were being mapped as vie…
mikealfare Nov 1, 2023
2eadb31
Update ddtrace requirement from ~=1.20 to ~=2.1 (#651)
dependabot[bot] Nov 1, 2023
fe1414f
ADAP-923: Resolve issue where backup parameter was inadvertently cons…
mikealfare Nov 8, 2023
e79680a
Update black requirement from ~=23.10 to ~=23.11 (#660)
dependabot[bot] Nov 8, 2023
f1ee2cb
Update ddtrace requirement from ~=2.1 to ~=2.2 (#665)
dependabot[bot] Nov 27, 2023
7ca0299
Update pytest-xdist requirement from ~=3.3 to ~=3.4 (#664)
dependabot[bot] Nov 27, 2023
88b55eb
Update wheel requirement from ~=0.41 to ~=0.42 (#670)
dependabot[bot] Nov 27, 2023
ba05757
Update ddtrace requirement from ~=2.2 to ~=2.3 (#669)
dependabot[bot] Nov 27, 2023
adc43d6
Bump mypy from 1.6.1 to 1.7.0 (#662)
dependabot[bot] Nov 28, 2023
1e5346c
Update pytest-xdist requirement from ~=3.4 to ~=3.5 (#672)
dependabot[bot] Nov 29, 2023
e88a483
Bump mypy from 1.7.0 to 1.7.1 (#676)
dependabot[bot] Nov 29, 2023
058a3ff
Fixes #641 by using the svv_mv_info view which is queryable (#647)
reptillicus Nov 29, 2023
0562935
Fix #624 by removing unnecessary boto3 version peg (#674)
hexDoor Nov 30, 2023
272df6b
add tests for --empty flag (#666)
MichelleArk Dec 1, 2023
961a0da
Update freezegun requirement from ~=1.2 to ~=1.3 (#681)
dependabot[bot] Dec 12, 2023
15dafa3
Update black requirement from ~=23.11 to ~=23.12 (#688)
dependabot[bot] Dec 12, 2023
f95c534
Migrate references to base adapter (#689)
VersusFacit Jan 10, 2024
06a1e6d
Migrate to dbt-adapters and dbt-common (#706)
colin-rogers-dbt Jan 29, 2024
0ac3405
fix redshift dev reqs (#709)
colin-rogers-dbt Feb 1, 2024
c09bc80
loosen redshift-connector dependency <=2.0.918, >=2.0.913 (#703)
colin-rogers-dbt Feb 1, 2024
d9274de
[Bug] Initialize sqlparse lexer prior to using sqlparse (#711)
mikealfare Feb 6, 2024
24673f8
remove actions that sync github and jira (#715)
mikealfare Feb 7, 2024
6906eb0
[Redshift] Add tests for unit testing (#680)
MichelleArk Feb 9, 2024
b79ced3
Implement relation filtering on get_catalog macro (#692)
mikealfare Feb 25, 2024
d77f5ee
Implementation of metadata-based freshness (#694)
mikealfare Feb 26, 2024
95961f2
update dbt-common dependency to <2.0 (#725)
colin-rogers-dbt Feb 28, 2024
5c02c55
update install_requires to allow for pre-release common/adapters (#727)
colin-rogers-dbt Mar 1, 2024
c91eed7
Bumping version to 1.8.0b1 and generate changelog
FishtownBuildBot Mar 1, 2024
05b7430
[Automated] Merged prep-release/1.8.0b1_8118540078 into target main d…
FishtownBuildBot Mar 2, 2024
8077150
Add explicit dependency on sqlparse that used to inherit from core (#…
mikealfare Mar 2, 2024
1e217f8
Add Redshift internal build process workflow (#732)
VersusFacit Mar 19, 2024
13ada0a
Test ddtrace dependency range (#733)
McKnight-42 Mar 19, 2024
f92ec48
[Bug] Python driver 2.0.918 causes SSL error. Need to revert back to …
mikealfare Mar 20, 2024
c99c73b
Fix the renamed relations code (#723)
VersusFacit Mar 21, 2024
be1a252
Finish internal build workflow (#735)
VersusFacit Mar 26, 2024
3483ad1
Pin `black>=24.3` (#743)
mikealfare Mar 28, 2024
3e9e948
Add `dbt-core~=1.8.0a1` as convenience dep (#756)
mikealfare Apr 3, 2024
afc79ad
Bumping version to 1.8.0b2 and generate changelog
FishtownBuildBot Apr 3, 2024
31ca102
[Automated] Merged prep-release/1.8.0b2_8545452225 into target main d…
FishtownBuildBot Apr 3, 2024
deb92e5
Update dependabot config to cover GHA (#759)
mikealfare Apr 12, 2024
fdad756
Allow dbt to cancel connections (#718)
holly-evans Apr 13, 2024
663b8ed
update sqlparse to be in line with dbt-core (#768)
McKnight-42 Apr 18, 2024
81d7a19
Bumping version to 1.8.0b3 and generate changelog
FishtownBuildBot Apr 18, 2024
b8d330b
TableLastModifiedMetadataBatch capability (#744)
MichelleArk Apr 18, 2024
179bfeb
[Automated] Merged prep-release/1.8.0b3_8743852833 into target main d…
FishtownBuildBot Apr 18, 2024
71acee9
add pre-commit check for dbt-core (#775)
mikealfare Apr 19, 2024
eb0c74b
Move to `pre-commit` only (#777)
mikealfare Apr 22, 2024
9cc7a7c
workflow updates to support iam user auth testing and new variables (…
mikealfare Apr 22, 2024
e1cc700
Make space for both user and role in testing, add role environment va…
mikealfare Apr 23, 2024
557dbb6
add region to CI env (#784)
mikealfare Apr 24, 2024
9b4e62a
Update workflow to support iam user and iam role tests (#786)
mikealfare Apr 24, 2024
ddfc36c
pin macos-runners to macos-12 (#787)
mikealfare Apr 25, 2024
1afa51e
Bump actions/download-artifact from 3 to 4 (#765)
dependabot[bot] Apr 25, 2024
32410a6
Revert "Bump actions/download-artifact from 3 to 4 (#765)" (#796)
mikealfare Apr 26, 2024
6031b23
Stop adding aliases to render_limited output (#782)
colin-rogers-dbt May 2, 2024
aaeec6d
Cleanup main after cutting new 1.8.latest branch (#810)
FishtownBuildBot May 3, 2024
12b5cd7
Add missing changelog backlinks. (#814)
VersusFacit May 7, 2024
2d653c6
Add integration tests for IAM User auth (#774)
mikealfare May 7, 2024
7e94b0a
Add IAM Role Authentication (#781)
mikealfare May 8, 2024
80a484b
Update CODEOWNERS (#815)
mikealfare May 8, 2024
b57890e
Mark flaky tests (#813)
mikealfare May 10, 2024
43968b5
fix macos runner typo (#820)
mikealfare May 13, 2024
4b8add4
Cross-database `date` macro (#806)
dbeatty10 May 14, 2024
2489280
Import relevant pytest(s) for cross-database `cast` macro (#805)
dbeatty10 May 14, 2024
3b6de5b
Add docker release to the full release process for final releases (#…
mikealfare May 21, 2024
cef201f
Add aws cli setup to the internal PyPI release pipeline (#829)
mikealfare May 21, 2024
0c3f514
Adap 746/merge agate lazy load (#831)
VersusFacit Jun 13, 2024
a83553b
Pin to 2.1.1 and below to fix the cursor error. (#844)
VersusFacit Jun 13, 2024
885db2d
Remove group_federation for serverless (#836)
Fleid Jun 13, 2024
a1cd9dd
update user docs-issue workflow (#847)
McKnight-42 Jun 20, 2024
3885699
Update internal release naming and arguments (#849)
colin-rogers-dbt Jun 21, 2024
3e8860a
remove calculated version for dbt-postgres dependency (#850)
mikealfare Jun 21, 2024
e757692
Base 207/add test (#851)
VersusFacit Jul 8, 2024
b510298
Adap 821/unit test infer wrong datatype (#852)
VersusFacit Jul 12, 2024
f184478
Revert "Adap 821/unit test infer wrong datatype (#852)" (#860)
VersusFacit Jul 17, 2024
4f1f7c8
Update freezegun requirement from ~=1.3 to ~=1.4 (#695)
dependabot[bot] Jul 18, 2024
18e2271
Bump actions/checkout from 3 to 4 (#802)
dependabot[bot] Jul 18, 2024
47fce6a
Bump dbt-labs/actions from 1.1.0 to 1.1.1 (#762)
dependabot[bot] Jul 19, 2024
19f9e56
Update tox requirement from ~=4.11 to ~=4.16 (#870)
dependabot[bot] Jul 19, 2024
6674d55
Update twine requirement from ~=4.0 to ~=5.1 (#876)
dependabot[bot] Jul 19, 2024
725b45e
Bump pre-commit from 3.7.0 to 3.7.1 (#867)
dependabot[bot] Jul 21, 2024
f261d17
Remove `freezegun` as a test dependency since it is not used (#875)
mikealfare Jul 23, 2024
a1f33db
Adap 821/unit tests infer wrong datatype for None values in fixtures …
VersusFacit Jul 23, 2024
5c6c2bb
Add support for 3.12 in workflow files and configs. (#886)
VersusFacit Jul 25, 2024
b18b555
make dependabot less aggressive (#878)
mikealfare Jul 26, 2024
38fd49a
Integration workflow update to support all-in-one adapter testing (#889)
gshank Aug 1, 2024
08e50f9
Correct syntax for mv comments (#853)
jeremyyeo Aug 8, 2024
8bbdbf2
Fix config change detection not working for multiple sortkey in mater…
lvitti Aug 9, 2024
d189acb
Add cascade to drop mv (#904)
mikealfare Sep 6, 2024
04bd2c0
Use `redshift_connector`'s `get_columns` call to get column metadata …
mikealfare Sep 10, 2024
fb1b5ae
Add description to pg catalog flag (#913)
mikealfare Sep 18, 2024
336eef1
update dbt-common dependency to 1.10 and dbt-adapters to 1.7 (#918)
colin-rogers-dbt Sep 26, 2024
8066309
add a request to report issues to the github discussion (#922)
mikealfare Sep 30, 2024
2afc689
Bumping version to 1.9.0b1 and generate changelog
FishtownBuildBot Oct 1, 2024
0b02178
[Automated] Merged prep-release/1.9.0b1_11132162404 into target main …
FishtownBuildBot Oct 1, 2024
93641ff
Verify that the behavior flag warning fires once (#916)
mikealfare Oct 16, 2024
9241fcd
Drop support for Python 3.8 (#931)
mikealfare Oct 17, 2024
f50cf7f
Remove `get_columns` implementation for column metadata generation (#…
mikealfare Nov 1, 2024
286ecc8
add InterfaceError to retryable_exceptions (#895)
colin-rogers-dbt Nov 1, 2024
d024eaf
move github runner from macos-12 to macos-14 (#941)
colin-rogers-dbt Nov 5, 2024
fa4d72c
test macos-14 on py310 instead of py39 due to missing psycopg2-binary…
mikealfare Nov 6, 2024
1943ac5
matrix entries need to be an array, even with only one value (#943)
mikealfare Nov 6, 2024
fccbe2d
Add microbatch strategy (#924)
QMalcolm Nov 7, 2024
fefc43a
Bumping version to 1.9.0b2 and generate changelog
FishtownBuildBot Nov 11, 2024
cf5acf1
[Automated] Merged prep-release/1.9.0b2_11786765878 into target main …
FishtownBuildBot Nov 11, 2024
c457faf
Add browser IDC authentication method (#950)
VersusFacit Nov 25, 2024
f83885f
Cleanup main after cutting new 1.9.latest branch (#957)
FishtownBuildBot Dec 2, 2024
99d6a3d
update libpq-dev dependency to 13.18-0+deb11u1 (#958)
colin-rogers-dbt Dec 4, 2024
a145bc1
ADAP-1117: Move to `hatch` and `pyproject.toml` (#951)
mikealfare Dec 11, 2024
0376909
Refactor to use new batch context varaibles (#967)
QMalcolm Dec 12, 2024
b3030ff
support retrying interface exceptions during query execution (#960)
colin-rogers-dbt Dec 18, 2024
f10d316
Update release-internal.yml to use hatch (#972)
colin-rogers-dbt Jan 6, 2025
de078b8
Add Redshift Iam Idc token authentication method with an eye towards …
VersusFacit Jan 16, 2025
9e6516a
Remove the artifacts related workflow steps (#982)
VersusFacit Jan 19, 2025
0d2ad15
ADAP-1121: Move dbt-redshift into a namespace subpackage (#971)
mikealfare Jan 7, 2025
5e3c0e4
migrate dbt-redshift into dbt-adapters
mikealfare Jan 20, 2025
76816a5
add dbt-redshift to workflow dispatch dropdowns
mikealfare Jan 20, 2025
6f79071
add dbt-redshift to workflow dispatch dropdowns
mikealfare Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ body:
required: false
- label: dbt-bigquery
required: false
- label: dbt-redshift
required: false
- label: dbt-spark
required: false
- type: textarea
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/regression-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ body:
required: false
- label: dbt-bigquery
required: false
- label: dbt-redshift
required: false
- label: dbt-spark
required: false
- type: textarea
Expand Down
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ updates:
- "/dbt-athena"
- "/dbt-athena-community"
- "/dbt-bigquery"
- "/dbt-redshift"
- "/dbt-spark"
schedule:
interval: "daily"
Expand All @@ -18,6 +19,7 @@ updates:
- package-ecosystem: "docker"
directories:
- "/dbt-bigquery/docker"
- "/dbt-redshift/docker"
- "/dbt-spark/docker"
schedule:
interval: "weekly"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
merge:
description: "Choose whether to merge the changelog branch"
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/_integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
branch:
description: "Choose the branch to test"
Expand Down Expand Up @@ -127,6 +128,65 @@ jobs:
if: ${{ inputs.python-version == '3.9' }} # we only run this for one version to run in series
working-directory: ./${{ inputs.package }}

integration-tests-redshift:
if: ${{ inputs.package == 'dbt-redshift' }}
runs-on: ${{ inputs.os }}
environment:
name: "dbt-redshift"
env:
AWS_USER_PROFILE: ${{ vars.AWS_USER_PROFILE }}
AWS_USER_ACCESS_KEY_ID: ${{ vars.AWS_USER_ACCESS_KEY_ID }}
AWS_USER_SECRET_ACCESS_KEY: ${{ secrets.AWS_USER_SECRET_ACCESS_KEY }}
AWS_SOURCE_PROFILE: ${{ vars.AWS_SOURCE_PROFILE }}
AWS_ROLE_PROFILE: ${{ vars.AWS_ROLE_PROFILE }}
AWS_ROLE_ACCESS_KEY_ID: ${{ vars.AWS_ROLE_ACCESS_KEY_ID }}
AWS_ROLE_SECRET_ACCESS_KEY: ${{ secrets.AWS_ROLE_SECRET_ACCESS_KEY }}
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
AWS_REGION: ${{ vars.AWS_REGION }}
REDSHIFT_TEST_DBNAME: ${{ vars.REDSHIFT_TEST_DBNAME }}
REDSHIFT_TEST_PASS: ${{ secrets.REDSHIFT_TEST_PASS }}
REDSHIFT_TEST_USER: ${{ vars.REDSHIFT_TEST_USER }}
REDSHIFT_TEST_PORT: ${{ vars.REDSHIFT_TEST_PORT }}
REDSHIFT_TEST_HOST: ${{ secrets.REDSHIFT_TEST_HOST }}
REDSHIFT_TEST_CLUSTER_ID: ${{ vars.REDSHIFT_TEST_CLUSTER_ID }}
REDSHIFT_TEST_REGION: ${{ vars.AWS_REGION }}
REDSHIFT_TEST_IAM_USER_PROFILE: ${{ vars.AWS_USER_PROFILE }}
REDSHIFT_TEST_IAM_USER_ACCESS_KEY_ID: ${{ vars.AWS_USER_ACCESS_KEY_ID }}
REDSHIFT_TEST_IAM_USER_SECRET_ACCESS_KEY: ${{ secrets.AWS_USER_SECRET_ACCESS_KEY }}
REDSHIFT_TEST_IAM_ROLE_PROFILE: ${{ vars.AWS_ROLE_PROFILE }}
DBT_TEST_USER_1: ${{ vars.DBT_TEST_USER_1 }}
DBT_TEST_USER_2: ${{ vars.DBT_TEST_USER_2 }}
DBT_TEST_USER_3: ${{ vars.DBT_TEST_USER_3 }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
repository: ${{ inputs.repository }}
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: pypa/hatch@install
- name: Create AWS IAM profiles
run: |
aws configure --profile $AWS_USER_PROFILE set aws_access_key_id $AWS_USER_ACCESS_KEY_ID
aws configure --profile $AWS_USER_PROFILE set aws_secret_access_key $AWS_USER_SECRET_ACCESS_KEY
aws configure --profile $AWS_USER_PROFILE set region $AWS_REGION
aws configure --profile $AWS_USER_PROFILE set output json

aws configure --profile $AWS_SOURCE_PROFILE set aws_access_key_id $AWS_ROLE_ACCESS_KEY_ID
aws configure --profile $AWS_SOURCE_PROFILE set aws_secret_access_key $AWS_ROLE_SECRET_ACCESS_KEY
aws configure --profile $AWS_SOURCE_PROFILE set region $AWS_REGION
aws configure --profile $AWS_SOURCE_PROFILE set output json

aws configure --profile $AWS_ROLE_PROFILE set source_profile $AWS_SOURCE_PROFILE
aws configure --profile $AWS_ROLE_PROFILE set role_arn $AWS_ROLE_ARN
aws configure --profile $AWS_ROLE_PROFILE set region $AWS_REGION
aws configure --profile $AWS_ROLE_PROFILE set output json
- run: hatch run integration-tests tests/functional -m "not flaky" --ddtrace
working-directory: ./${{ inputs.package }}
- run: hatch run integration-tests tests/functional -m flaky -n1 --ddtrace
working-directory: ./${{ inputs.package }}

integration-tests-spark:
if: ${{ inputs.package == 'dbt-spark' }}
runs-on: ${{ inputs.os }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- "dbt-adapters"
- "dbt-athena"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
deploy-to:
description: "Choose whether to publish to test or prod"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
deploy-to:
description: "Choose whether to publish to test or prod"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
branch:
description: "Choose the branch to test"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
branch:
description: "Choose the branch to build"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
deploy-to:
description: "Choose whether to publish to test or prod"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
os: [ubuntu-22.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand All @@ -55,6 +56,7 @@ jobs:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
os: [ ubuntu-22.04 ]
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand All @@ -74,6 +76,7 @@ jobs:
- "dbt-athena"
- "dbt-athena-community"
- "dbt-bigquery"
- "dbt-redshift"
- "dbt-spark"
os: [ubuntu-22.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
exclude: dbt/adapters/events/adapter_types_pb2.py|tests/functional/|dbt-spark/tests/|dbt-bigquery/tests/
exclude: dbt/adapters/events/adapter_types_pb2.py|tests/functional/|dbt-spark/tests/|dbt-bigquery/tests/|dbt-redshift/tests
args:
- --max-line-length=99
- --select=E,F,W
- --ignore=E203,E501,E704,E741,W503,W504
- --per-file-ignores=*/__init__.py:F401,*/conftest.py:F401
additional_dependencies: [flaky]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
Expand Down
9 changes: 9 additions & 0 deletions dbt-redshift/.changes/0.0.0.md
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-redshift/blob/1.6.latest/CHANGELOG.md)
- [1.5](https://github.com/dbt-labs/dbt-redshift/blob/1.5.latest/CHANGELOG.md)
- [1.4](https://github.com/dbt-labs/dbt-redshift/blob/1.4.latest/CHANGELOG.md)
- [1.3](https://github.com/dbt-labs/dbt-redshift/blob/1.3.latest/CHANGELOG.md)
- [1.2](https://github.com/dbt-labs/dbt-redshift/blob/1.2.latest/CHANGELOG.md)
- [1.1](https://github.com/dbt-labs/dbt-redshift/blob/1.1.latest/CHANGELOG.md)
- [1.0](https://github.com/dbt-labs/dbt-redshift/blob/1.0.latest/CHANGELOG.md)
3 changes: 3 additions & 0 deletions dbt-redshift/.changes/README.md
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-redshift/blob/main/.changes/README.md) found in `dbt-redshift`.
6 changes: 6 additions & 0 deletions dbt-redshift/.changes/header.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# dbt-redshift Changelog

- This file provides a full account of all changes to `dbt-redshift`.
- 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-redshift/blob/main/CONTRIBUTING.md#adding-changelog-entry)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Add IdpTokenAuthPlugin authentication method.
time: 2024-12-17T18:13:40.281494-08:00
custom:
Author: versusfacit
Issue: "898"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Add retry logic for retryable exceptions
time: 2024-12-04T18:57:29.925299-08:00
custom:
Author: versusfacit colin-rogers-dbt
Issue: "960"
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-12-07T16:59:18.731819-05:00
custom:
Author: mikealfare
Issue: "951"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Refactor to use new batch context varaibles
time: 2024-12-11T14:51:32.239224-06:00
custom:
Author: QMalcolm
Issue: "966"
130 changes: 130 additions & 0 deletions dbt-redshift/.changie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
changesDir: .changes
unreleasedDir: unreleased
headerPath: header.tpl.md
versionHeaderPath: ""
changelogPath: CHANGELOG.md
versionExt: md
envPrefix: "CHANGIE_"
versionFormat: '## dbt-redshift {{.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-redshift/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-redshift/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-redshift/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-redshift/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-redshift/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 }}
16 changes: 16 additions & 0 deletions dbt-redshift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# dbt-redshift Changelog

- This file provides a full account of all changes to `dbt-redshift`.
- 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-redshift/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-redshift/blob/1.6.latest/CHANGELOG.md)
- [1.5](https://github.com/dbt-labs/dbt-redshift/blob/1.5.latest/CHANGELOG.md)
- [1.4](https://github.com/dbt-labs/dbt-redshift/blob/1.4.latest/CHANGELOG.md)
- [1.3](https://github.com/dbt-labs/dbt-redshift/blob/1.3.latest/CHANGELOG.md)
- [1.2](https://github.com/dbt-labs/dbt-redshift/blob/1.2.latest/CHANGELOG.md)
- [1.1](https://github.com/dbt-labs/dbt-redshift/blob/1.1.latest/CHANGELOG.md)
- [1.0](https://github.com/dbt-labs/dbt-redshift/blob/1.0.latest/CHANGELOG.md)
Loading
Loading