-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update MySQL JDBC driver to 8.0.29 #15345
Conversation
Alternative to #12692, let's see what tests fail. |
Same failures as in #14917, negative date related tests. I guess we'll need to add validation on Trino side to disallow negative values until the driver is fixed. I'll see how we can report a bug to the driver - I just left a comment at mysql/mysql-connector-j@60553fd#r88985720 in past. |
dd5cf43
to
d55ca6b
Compare
Got it working, added a test to verify driver bug too so that once we update to working driver we can get notified. I've started the process to file the bug to MySQL - waiting to hear back. |
plugin/trino-mysql/src/main/java/io/trino/plugin/mysql/MySqlClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-mysql/src/test/java/io/trino/plugin/mysql/BaseMySqlConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-mysql/src/main/java/io/trino/plugin/mysql/MySqlClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-mysql/src/main/java/io/trino/plugin/mysql/MySqlClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-mysql/src/test/java/io/trino/plugin/mysql/TestMySqlLegacyConnectorTest.java
Outdated
Show resolved
Hide resolved
@ebyhr Addressed comments as fixups. It's using |
This fixes an issue where system.query function failed if the query contained a WITH clause because the older MySQL JDBC drivers did not return metadata for queries containing WITH clause.
This test will start failing once a MySQL driver with the bug resolved is being used and can then be removed as well as the code changes from the previous commit partially reverted.
9c00cef
to
af15cfc
Compare
Description
Update MySQL JDBC driver to 8.0.29
Fixes #15332 Closes #12692
Additional context and related issues
Update MySQL JDBC driver to 8.0.29
Release notes
(x) Release notes are required, with the following suggested text: