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

chore(mysql): port to MySQLdb instead of pymysql #10077

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Sep 10, 2024

Replaces pymysql with mysqlclient, mostly out of frustration with bizarre GC behavior discovered during #10055. I think this is probably a breaking change due to some changes in how types are inferred for JSON, INET and UUID types.

BREAKING CHANGE: Ibis now uses the MySQLdb driver. You may need to install MySQL client libraries to build the extension.

@cpcloud cpcloud added this to the 10.0 milestone Sep 10, 2024
@cpcloud cpcloud added refactor Issues or PRs related to refactoring the codebase mysql The MySQL backend dependencies Issues or PRs related to dependencies breaking change Changes that introduce an API break at any level labels Sep 10, 2024
user=user,
host=host,
host="127.0.0.1" if host == "localhost" else host,
Copy link
Member Author

Choose a reason for hiding this comment

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

localhost will try to use a socket, which is different from the behavior of pymysql, so I made localhost usage backwards compatible. There's a unix_socket argument if anyone really needs it.

@cpcloud cpcloud force-pushed the dump-pymysql branch 8 times, most recently from 6890c17 to bb1eecb Compare September 14, 2024 09:25
@cpcloud cpcloud force-pushed the dump-pymysql branch 2 times, most recently from 3df30da to 70062ef Compare September 18, 2024 09:36
@cpcloud cpcloud merged commit 2b6633c into ibis-project:main Sep 18, 2024
78 checks passed
@cpcloud cpcloud deleted the dump-pymysql branch September 18, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Changes that introduce an API break at any level dependencies Issues or PRs related to dependencies mysql The MySQL backend refactor Issues or PRs related to refactoring the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants