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

fix: Use dbt-core md5 to inheret FIPS compatibility #604

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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: 2 additions & 2 deletions dbt/adapters/athena/connections.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import hashlib
import json
import re
import time
Expand Down Expand Up @@ -35,6 +34,7 @@
from dbt.adapters.sql import SQLConnectionManager
from dbt.contracts.connection import AdapterResponse, Connection, ConnectionState
from dbt.exceptions import ConnectionError, DbtRuntimeError
from dbt.utils import md5


@dataclass
Expand Down Expand Up @@ -72,7 +72,7 @@ def type(self) -> str:

@property
def unique_field(self) -> str:
return f"athena-{hashlib.md5(self.s3_staging_dir.encode()).hexdigest()}"
return f"athena-{md5(self.s3_staging_dir)}"

@property
def effective_num_retries(self) -> int:
Expand Down
Loading