Skip to content

Handle sqlalchemy engine.name being bytes#2074

Merged
antonpirker merged 1 commit into
masterfrom
ivana/pyhive-typeerror
May 4, 2023
Merged

Handle sqlalchemy engine.name being bytes#2074
antonpirker merged 1 commit into
masterfrom
ivana/pyhive-typeerror

Conversation

@sentrivana

Copy link
Copy Markdown
Contributor

There are cases where engine.name in sqlalchemy is not a string (see #2071).

Fixes #2071

@sentrivana
sentrivana force-pushed the ivana/pyhive-typeerror branch from 7913a82 to eccd9d8 Compare May 4, 2023 08:29
@sentrivana
sentrivana force-pushed the ivana/pyhive-typeerror branch from eccd9d8 to 3556997 Compare May 4, 2023 08:57
@sentrivana
sentrivana requested a review from antonpirker May 4, 2023 09:45
@antonpirker
antonpirker merged commit 92e24b4 into master May 4, 2023
@antonpirker
antonpirker deleted the ivana/pyhive-typeerror branch May 4, 2023 10:09

@pedrorivotti pedrorivotti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small drive-by note.

@@ -111,6 +112,8 @@ def _handle_error(context, *args):
# See: https://docs.sqlalchemy.org/en/20/dialects/index.html
def _get_db_system(name):
# type: (str) -> Optional[str]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type: (str) is no longer necessarily accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatibility between sentry-sdk and PyHive

3 participants