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: unblock UUID type usage for data contracts #23885

Merged
merged 1 commit into from
Dec 14, 2023
Merged
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
Expand Up @@ -5,6 +5,10 @@
* Remove the dependency of data contracts pre-flight checks on the existence of
the pre-installed `default` cluster. Fixes [#23600](https://github.com/MaterializeInc/materialize/issues/23600).

* Work around [dbt-core #8353](https://github.com/dbt-labs/dbt-core/issues/8353)
while a permanent fix doesn't land in dbt Core to unblock users using UUID
types.

## 1.7.0 - 2023-11-20

* Support specifying the materialization type used to store test failures via
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from typing import Optional

import psycopg2
from psycopg2.extras import register_uuid

import dbt.adapters.postgres.connections
import dbt.exceptions
Expand Down Expand Up @@ -48,6 +49,11 @@ def connect(**kwargs):
*(kwargs.get("options") or []),
]
kwargs["options"] = " ".join(options)

# NOTE(morsapaes): work around dbt-core #8353 while #8900 doesn't land to
# unblock users using UUID types.
register_uuid()

return _connect(**kwargs)


Expand Down