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

dbt-materialize: upgrade to dbt-postgres v1.9.0 #30850

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions misc/dbt-materialize/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# dbt-materialize Changelog

## 1.9.0 - 2024-12-17

* Upgrade to `dbt-postgres` v1.9.0.

## 1.8.6 - 2024-09-25

* Enable the `cluster` configuration for seeds, which allows specifying a target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

# If you bump this version, bump it in setup.py too.
version = "1.8.6"
version = "1.9.0"
8 changes: 4 additions & 4 deletions misc/dbt-materialize/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# This adapter's minor version should match the required dbt-postgres version,
# but patch versions may differ.
# If you bump this version, bump it in __version__.py too.
version="1.8.6",
version="1.9.0",
description="The Materialize adapter plugin for dbt.",
long_description=(Path(__file__).parent / "README.md").open().read(),
long_description_content_type="text/markdown",
Expand All @@ -42,11 +42,11 @@
]
},
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",
# add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
"dbt-core>=1.8.0",
"dbt-postgres~=1.8.0",
"dbt-postgres>=1.8,<1.10",
],
extras_require={
"dev": [
Expand Down
4 changes: 3 additions & 1 deletion misc/dbt-materialize/tests/adapter/test_run_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
BasePrePostRunHooks,
)
from dbt.tests.util import run_dbt
from dbt_common.exceptions import DbtDatabaseError
from fixtures import run_hook, test_run_operation


Expand Down Expand Up @@ -58,6 +59,7 @@ def check_hooks(self, state, project, host):

class TestAfterRunHooksMaterialize(BaseAfterRunHooks):
def test_missing_column_pre_hook(self, project):
run_dbt(["run"], expect_pass=False)
with pytest.raises(DbtDatabaseError):
run_dbt(["run"], expect_pass=False)

pass
Loading