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

[PECO-1436] [sqlalchemy] Include sqlalchemy __version__ in user-agent #332

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Jan 26, 2024

Description

This pr updates our user-agent setting logic for the sqlalchemy dialect so that we include the sqlalchemy package version.

I used this as an opportunity to reorganise the two (now three) user agent tests into their own test class.

Here's an example of how it's recorded in the query history:

CleanShot 2024-01-25 at 19 54 57@2x

Jesse Whitehouse added 3 commits January 25, 2024 19:37
to reuse code where available

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Copy link
Collaborator

@benc-db benc-db left a comment

Choose a reason for hiding this comment

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

Approved, assuming this doesn't disrupt any user-agent based tracking.

@susodapop
Copy link
Contributor Author

I'm double-checking the correct format. Will hold off on merging this until next week.

Jesse Whitehouse and others added 4 commits January 25, 2024 20:10
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
format function outside of its existing declaration so I can unit test it

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
in query history. Need to investigate this before merging.

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
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.

3 participants