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

check result for every query in multiquery #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
11 changes: 5 additions & 6 deletions dbt/adapters/vertica/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class verticaCredentials(Credentials):
# backup_server_node: Optional[str] = None

# additional_info = {
# 'password': str,
# 'password': str,
# 'backup_server_node': list# invalid value to be set in a connection string
# }

Expand Down Expand Up @@ -94,7 +94,7 @@ def open(cls, connection):
'retries': credentials.retries,
'oauth_access_token': credentials.oauth_access_token,
'backup_server_node':credentials.backup_server_node,

}

# if credentials.ssl.lower() in {'true', 'yes', 'please'}:
Expand All @@ -114,16 +114,15 @@ def open(cls, connection):
context = ssl.create_default_context()
conn_info['ssl'] = context
logger.debug('SSL is on')

def connect():
handle = vertica_python.connect(**conn_info)
logger.debug(f':P Connection work {handle}')
connection.state = 'open'
connection.handle = handle
logger.debug(f':P Connected to database: {credentials.database} at {credentials.host} at {handle}')
return handle




except Exception as exc:
Expand Down Expand Up @@ -237,4 +236,4 @@ def exception_handler(self, sql):
@classmethod
def data_type_code_to_name(cls, type_code: Union[int, str]) -> str:
assert isinstance(type_code, int)
return vertica_python.vertica.connector.constants.FIELD_ID_TO_NAME[type_code]
return vertica_python.vertica.connector.constants.FIELD_ID_TO_NAME[type_code]