Skip to content

Commit

Permalink
Update for changes in namespace conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterallenwebb committed Apr 26, 2024
1 parent 9c46c54 commit ffe6c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dbt/record.py → dbt/adapters/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from io import StringIO
import json
import re
from typing import Any, Optional, Mapping, Tuple
from typing import Any, Optional, Mapping

from agate import Table

Expand Down Expand Up @@ -32,7 +32,9 @@ def _clean_up_sql(sql: str) -> str:
return sql.replace(" ", "").replace("\n", "")

def _matches(self, other: "QueryRecordParams") -> bool:
return self.node_unique_id == other.node_unique_id and self._clean_up_sql(self.sql) == self._clean_up_sql(other.sql)
return self.node_unique_id == other.node_unique_id and self._clean_up_sql(
self.sql
) == self._clean_up_sql(other.sql)


@dataclasses.dataclass
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/sql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
SQLQuery,
SQLQueryStatus,
)
from dbt.record import QueryRecord
from dbt.adapters.record import QueryRecord

if TYPE_CHECKING:
import agate
Expand Down

0 comments on commit ffe6c15

Please sign in to comment.