diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 5baa94d2..f11f5488 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.9.0a1 +current_version = 1.9.0b1 parse = (?P[\d]+) # major version number \.(?P[\d]+) # minor version number \.(?P[\d]+) # patch version number diff --git a/.changes/1.9.0-b1.md b/.changes/1.9.0-b1.md new file mode 100644 index 00000000..7bebffe0 --- /dev/null +++ b/.changes/1.9.0-b1.md @@ -0,0 +1,42 @@ +## dbt-redshift 1.9.0-b1 - October 01, 2024 + +### Features + +- Support IAM user auth via direct parameters, in addition to the existing profile method ([#760](https://github.com/dbt-labs/dbt-redshift/issues/760)) +- Add support for IAM Role auth ([#623](https://github.com/dbt-labs/dbt-redshift/issues/623)) +- Add tests for cross-database `cast` macro ([#804](https://github.com/dbt-labs/dbt-redshift/issues/804)) +- Cross-database `date` macro ([#808](https://github.com/dbt-labs/dbt-redshift/issues/808)) +- Remove `pg_catalog` from metadata queries ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) + +### Fixes + +- Stop adding aliases to subqueries when calling with `--empty` ([#782](https://github.com/dbt-labs/dbt-redshift/issues/782)) +- Support IAM Role authentication for Redshift Serverless ([#835](https://github.com/dbt-labs/dbt-redshift/issues/835)) +- Fix config change detection not working for multiple sortkey in materialized views ([#838](https://github.com/dbt-labs/dbt-redshift/issues/838)) +- update pin range for redshift-connector to allow 2.1.0 ([#844](https://github.com/dbt-labs/dbt-redshift/issues/844)) +- Handle unit test fixtures where typing goes wrong from first value in column being Null. ([#821](https://github.com/dbt-labs/dbt-redshift/issues/821)) +- Fix materialized views comment syntax ([#837](https://github.com/dbt-labs/dbt-redshift/issues/837)) +- Support DROP CASCADE for materialized views; fixes bug that occurs when running dbt on materialized views that reference other materialized views ([#642](https://github.com/dbt-labs/dbt-redshift/issues/642)) + +### Under the Hood + +- Lazy load agate ([#745](https://github.com/dbt-labs/dbt-redshift/issues/745)) +- Remove `freezegun` as a testing dependency; this package is no longer used ([#1136](https://github.com/dbt-labs/dbt-redshift/issues/1136)) + +### Dependencies + +- Update freezegun requirement from ~=1.3 to ~=1.4 ([#695](https://github.com/dbt-labs/dbt-redshift/pull/695)) +- Bump dbt-labs/actions from 1.1.0 to 1.1.1 ([#762](https://github.com/dbt-labs/dbt-redshift/pull/762)) +- Bump actions/checkout from 3 to 4 ([#802](https://github.com/dbt-labs/dbt-redshift/pull/802)) +- Bump pre-commit from 3.7.0 to 3.7.1 ([#867](https://github.com/dbt-labs/dbt-redshift/pull/867)) +- Update tox requirement from ~=4.11 to ~=4.16 ([#870](https://github.com/dbt-labs/dbt-redshift/pull/870)) +- Update twine requirement from ~=4.0 to ~=5.1 ([#876](https://github.com/dbt-labs/dbt-redshift/pull/876)) + +### Contributors +- [@dwreeves](https://github.com/dwreeves) ([#745](https://github.com/dbt-labs/dbt-redshift/issues/745)) +- [@fleid](https://github.com/fleid) ([#835](https://github.com/dbt-labs/dbt-redshift/issues/835)) +- [@jeremyyeo](https://github.com/jeremyyeo) ([#837](https://github.com/dbt-labs/dbt-redshift/issues/837)) +- [@jiezhen-chen](https://github.com/jiezhen-chen) ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) +- [@lvitti](https://github.com/lvitti) ([#838](https://github.com/dbt-labs/dbt-redshift/issues/838)) +- [@mikealfare,](https://github.com/mikealfare,) ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) +- [@mikealfare,abbywh](https://github.com/mikealfare,abbywh) ([#623](https://github.com/dbt-labs/dbt-redshift/issues/623)) diff --git a/.changes/unreleased/Dependencies-20231219-192336.yaml b/.changes/1.9.0/Dependencies-20231219-192336.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20231219-192336.yaml rename to .changes/1.9.0/Dependencies-20231219-192336.yaml diff --git a/.changes/unreleased/Dependencies-20240412-155445.yaml b/.changes/1.9.0/Dependencies-20240412-155445.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240412-155445.yaml rename to .changes/1.9.0/Dependencies-20240412-155445.yaml diff --git a/.changes/unreleased/Dependencies-20240429-192949.yaml b/.changes/1.9.0/Dependencies-20240429-192949.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240429-192949.yaml rename to .changes/1.9.0/Dependencies-20240429-192949.yaml diff --git a/.changes/unreleased/Dependencies-20240718-191611.yaml b/.changes/1.9.0/Dependencies-20240718-191611.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240718-191611.yaml rename to .changes/1.9.0/Dependencies-20240718-191611.yaml diff --git a/.changes/unreleased/Dependencies-20240718-191741.yaml b/.changes/1.9.0/Dependencies-20240718-191741.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240718-191741.yaml rename to .changes/1.9.0/Dependencies-20240718-191741.yaml diff --git a/.changes/unreleased/Dependencies-20240719-195946.yaml b/.changes/1.9.0/Dependencies-20240719-195946.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240719-195946.yaml rename to .changes/1.9.0/Dependencies-20240719-195946.yaml diff --git a/.changes/unreleased/Features-20240419-145208.yaml b/.changes/1.9.0/Features-20240419-145208.yaml similarity index 100% rename from .changes/unreleased/Features-20240419-145208.yaml rename to .changes/1.9.0/Features-20240419-145208.yaml diff --git a/.changes/unreleased/Features-20240425-011440.yaml b/.changes/1.9.0/Features-20240425-011440.yaml similarity index 100% rename from .changes/unreleased/Features-20240425-011440.yaml rename to .changes/1.9.0/Features-20240425-011440.yaml diff --git a/.changes/unreleased/Features-20240430-185708.yaml b/.changes/1.9.0/Features-20240430-185708.yaml similarity index 100% rename from .changes/unreleased/Features-20240430-185708.yaml rename to .changes/1.9.0/Features-20240430-185708.yaml diff --git a/.changes/unreleased/Features-20240501-151859.yaml b/.changes/1.9.0/Features-20240501-151859.yaml similarity index 100% rename from .changes/unreleased/Features-20240501-151859.yaml rename to .changes/1.9.0/Features-20240501-151859.yaml diff --git a/.changes/unreleased/Features-20240826-123954.yaml b/.changes/1.9.0/Features-20240826-123954.yaml similarity index 100% rename from .changes/unreleased/Features-20240826-123954.yaml rename to .changes/1.9.0/Features-20240826-123954.yaml diff --git a/.changes/unreleased/Fixes-20240423-131503.yaml b/.changes/1.9.0/Fixes-20240423-131503.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240423-131503.yaml rename to .changes/1.9.0/Fixes-20240423-131503.yaml diff --git a/.changes/unreleased/Fixes-20240531-113620.yaml b/.changes/1.9.0/Fixes-20240531-113620.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240531-113620.yaml rename to .changes/1.9.0/Fixes-20240531-113620.yaml diff --git a/.changes/unreleased/Fixes-20240610-104114.yaml b/.changes/1.9.0/Fixes-20240610-104114.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240610-104114.yaml rename to .changes/1.9.0/Fixes-20240610-104114.yaml diff --git a/.changes/unreleased/Fixes-20240612-131752.yaml b/.changes/1.9.0/Fixes-20240612-131752.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240612-131752.yaml rename to .changes/1.9.0/Fixes-20240612-131752.yaml diff --git a/.changes/unreleased/Fixes-20240625-170324.yaml b/.changes/1.9.0/Fixes-20240625-170324.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240625-170324.yaml rename to .changes/1.9.0/Fixes-20240625-170324.yaml diff --git a/.changes/unreleased/Fixes-20240715-143507.yaml b/.changes/1.9.0/Fixes-20240715-143507.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240715-143507.yaml rename to .changes/1.9.0/Fixes-20240715-143507.yaml diff --git a/.changes/unreleased/Fixes-20240906-102642.yaml b/.changes/1.9.0/Fixes-20240906-102642.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240906-102642.yaml rename to .changes/1.9.0/Fixes-20240906-102642.yaml diff --git a/.changes/unreleased/Under the Hood-20240331-103115.yaml b/.changes/1.9.0/Under the Hood-20240331-103115.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20240331-103115.yaml rename to .changes/1.9.0/Under the Hood-20240331-103115.yaml diff --git a/.changes/unreleased/Under the Hood-20240719-133151.yaml b/.changes/1.9.0/Under the Hood-20240719-133151.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20240719-133151.yaml rename to .changes/1.9.0/Under the Hood-20240719-133151.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 218a3de9..23cffbad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,52 @@ - "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) +## dbt-redshift 1.9.0-b1 - October 01, 2024 + +### Features + +- Support IAM user auth via direct parameters, in addition to the existing profile method ([#760](https://github.com/dbt-labs/dbt-redshift/issues/760)) +- Add support for IAM Role auth ([#623](https://github.com/dbt-labs/dbt-redshift/issues/623)) +- Add tests for cross-database `cast` macro ([#804](https://github.com/dbt-labs/dbt-redshift/issues/804)) +- Cross-database `date` macro ([#808](https://github.com/dbt-labs/dbt-redshift/issues/808)) +- Remove `pg_catalog` from metadata queries ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) + +### Fixes + +- Stop adding aliases to subqueries when calling with `--empty` ([#782](https://github.com/dbt-labs/dbt-redshift/issues/782)) +- Support IAM Role authentication for Redshift Serverless ([#835](https://github.com/dbt-labs/dbt-redshift/issues/835)) +- Fix config change detection not working for multiple sortkey in materialized views ([#838](https://github.com/dbt-labs/dbt-redshift/issues/838)) +- update pin range for redshift-connector to allow 2.1.0 ([#844](https://github.com/dbt-labs/dbt-redshift/issues/844)) +- Handle unit test fixtures where typing goes wrong from first value in column being Null. ([#821](https://github.com/dbt-labs/dbt-redshift/issues/821)) +- Fix materialized views comment syntax ([#837](https://github.com/dbt-labs/dbt-redshift/issues/837)) +- Support DROP CASCADE for materialized views; fixes bug that occurs when running dbt on materialized views that reference other materialized views ([#642](https://github.com/dbt-labs/dbt-redshift/issues/642)) + +### Under the Hood + +- Lazy load agate ([#745](https://github.com/dbt-labs/dbt-redshift/issues/745)) +- Remove `freezegun` as a testing dependency; this package is no longer used ([#1136](https://github.com/dbt-labs/dbt-redshift/issues/1136)) + +### Dependencies + +- Update freezegun requirement from ~=1.3 to ~=1.4 ([#695](https://github.com/dbt-labs/dbt-redshift/pull/695)) +- Bump dbt-labs/actions from 1.1.0 to 1.1.1 ([#762](https://github.com/dbt-labs/dbt-redshift/pull/762)) +- Bump actions/checkout from 3 to 4 ([#802](https://github.com/dbt-labs/dbt-redshift/pull/802)) +- Bump pre-commit from 3.7.0 to 3.7.1 ([#867](https://github.com/dbt-labs/dbt-redshift/pull/867)) +- Update tox requirement from ~=4.11 to ~=4.16 ([#870](https://github.com/dbt-labs/dbt-redshift/pull/870)) +- Update twine requirement from ~=4.0 to ~=5.1 ([#876](https://github.com/dbt-labs/dbt-redshift/pull/876)) + +### Contributors +- [@dwreeves](https://github.com/dwreeves) ([#745](https://github.com/dbt-labs/dbt-redshift/issues/745)) +- [@fleid](https://github.com/fleid) ([#835](https://github.com/dbt-labs/dbt-redshift/issues/835)) +- [@jeremyyeo](https://github.com/jeremyyeo) ([#837](https://github.com/dbt-labs/dbt-redshift/issues/837)) +- [@jiezhen-chen](https://github.com/jiezhen-chen) ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) +- [@lvitti](https://github.com/lvitti) ([#838](https://github.com/dbt-labs/dbt-redshift/issues/838)) +- [@mikealfare,](https://github.com/mikealfare,) ([#555](https://github.com/dbt-labs/dbt-redshift/issues/555)) +- [@mikealfare,abbywh](https://github.com/mikealfare,abbywh) ([#623](https://github.com/dbt-labs/dbt-redshift/issues/623)) + + ## Previous Releases For information on prior major and minor releases, see their changelogs: -- [1.8](https://github.com/dbt-labs/dbt-redshift/blob/1.8.latest/CHANGELOG.md) -- [1.7](https://github.com/dbt-labs/dbt-redshift/blob/1.7.latest/CHANGELOG.md) - [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) diff --git a/dbt/adapters/redshift/__version__.py b/dbt/adapters/redshift/__version__.py index 6698ed64..a4077fff 100644 --- a/dbt/adapters/redshift/__version__.py +++ b/dbt/adapters/redshift/__version__.py @@ -1 +1 @@ -version = "1.9.0a1" +version = "1.9.0b1" diff --git a/dbt/adapters/redshift/impl.py b/dbt/adapters/redshift/impl.py index dd80a7f4..e0cefb98 100644 --- a/dbt/adapters/redshift/impl.py +++ b/dbt/adapters/redshift/impl.py @@ -78,7 +78,8 @@ def _behavior_flags(self) -> List[BehaviorFlag]: "The dbt-redshift adapter is migrating from using pg_ tables " "to using Redshift Metadata API and information_schema tables " "in order to support additional Redshift functionalities.\n" - "We do not expect this to impact your dbt experience." + "We do not expect this to impact your dbt experience. " + "Please report any issues using this GitHub discussion: https://github.com/dbt-labs/dbt-redshift/discussions/921" ), "docs_url": "https://docs.getdbt.com/reference/global-configs/behavior-changes#redshift-restrict_direct_pg_catalog_access", } diff --git a/setup.py b/setup.py index 712da387..4ff715f0 100644 --- a/setup.py +++ b/setup.py @@ -48,8 +48,8 @@ def _plugin_version() -> str: packages=find_namespace_packages(include=["dbt", "dbt.*"]), include_package_data=True, install_requires=[ - "dbt-common>=0.1.0a1,<2.0", - "dbt-adapters>=0.1.0a1,<2.0", + "dbt-common>=1.10,<2.0", + "dbt-adapters>=1.7,<2.0", "dbt-postgres>=1.8,<1.10", # dbt-redshift depends deeply on this package. it does not follow SemVer, therefore there have been breaking changes in previous patch releases # Pin to the patch or minor version, and bump in each new minor version of dbt-redshift.