Skip to content

Commit

Permalink
Fix reset of settings (#14)
Browse files Browse the repository at this point in the history
A silly bug ended up resetting the database and schema settings,
preventing the test models from running.

Also reverted dbt-core version to 1.1.2 after profile_template stopper
working again on dbt-core 1.2.2.
  • Loading branch information
jlarue26 authored Oct 10, 2022
1 parent 99d7244 commit 30b1991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions dbt/adapters/dremio/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def unique_field(self):
def _connection_keys(self):
# return an iterator of keys to pretty-print in 'dbt debug'
# raise NotImplementedError
return 'driver', 'host', 'port', 'UID', 'database', 'schema',
'additional_parameters', 'datalake', 'root_path', 'environment', 'use_ssl'
return 'driver', 'host', 'port', 'UID', 'database', 'schema', 'additional_parameters', 'datalake', 'root_path', 'environment', 'use_ssl'

@classmethod
def __pre_deserialize__(cls, data):
Expand Down Expand Up @@ -128,7 +127,6 @@ def open(cls, connection):
return connection

credentials = connection.credentials
logger.debug(credentials.pat)

try:
con_str = ["ConnectionType=Direct", "AuthenticationType=Plain", "QueryTimeout=600"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
packages=find_namespace_packages(include=["dbt", "dbt.*"]),
include_package_data=True,
install_requires=[
'dbt-core==1.2.2',
'dbt-core==1.1.2',
'pyodbc>=4.0.27',
]
)

0 comments on commit 30b1991

Please sign in to comment.