[Improvement] com.mysql.jdbc.Driver has been deprecated
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 935
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 298
Description
### What would you like to be improved?
The SQL driver com.mysql.jdbc.Driver has been deprecated. Should we use com.mysql.cj.jdbc.Driver instead?
"com.mysql.jdbc.Driver" is hardcoded in several places in configuration files and in:
/gravitino/flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/jdbc/mysql/MysqlPropertiesConverter.java
/gravitino/integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/MySQLContainer.java
But it is mentioned as deprecated in:
/gravitino/iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java
And "com.mysql.cj.jdbc.Driver" is used in other places in the code.
### How should we improve?
_No response_
Contributor guide
Research direction
Start by comparing the hardcoded driver references in configuration files, MysqlPropertiesConverter.java, MySQLContainer.java, and IcebergCatalogWrapper.java with the existing com.mysql.cj.jdbc.Driver usages. Determine the complete set of deprecated references and verify that all affected configuration and integration-test paths consistently use the intended driver. Done means no unintended com.mysql.jdbc.Driver references remain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mysql
- Domain
- database
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100