Skip to content

Commit

Permalink
fix: Use dbt-core md5 to inheret FIPS compatibility (#604)
Browse files Browse the repository at this point in the history
Co-authored-by: chrischin <>
  • Loading branch information
chrischin478 authored Mar 15, 2024
1 parent 40855b3 commit 3cdd7ee
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3cdd7ee

Please sign in to comment.