e-mhui opened a new pull request, #8610: URL: https://github.com/apache/inlong/pull/8610
### Prepare a Pull Request [INLONG-8279][Sort] Fix NPE when run MySqlLoadSqlParseTest - Fixes #8279 ### Motivation 在 `MySqlLoadSqlParseTest#testMySqlLoadSqlParse()` 填上真实的数据库连接参数后,运行测试用例出现 NPE 错误,根据源码发现,**debezium-ddl-parser** 解析 `varchar(255)` 类型出错。 但是当单独运行 MySQL Connector 而不是单元测试的时候,解析是正常的。在 单元测试 中,存在多个版本的 **debezium-ddl-parser**,默认情况下使用 1.6.4-Final 版本,而 MySQL 依赖的是 1.5.4-Final,所以我们只能先排除 Oracle Connector 中的 1.6.4-FInal 版本。 After filling in the real database connection parameters in `MySqlLoadSqlParseTest#testMySqlLoadSqlParse()`, running the UT results in an NPE. According to the source code, the **debezium-ddl-parser** fails to parse the `varchar(255)` type. <img width="1496" alt="image" src="https://github.com/apache/inlong/assets/111486498/c77f11bf-37be-4f68-a822-697fb52c642c"> However, when running the MySQL Connector separately instead of the unit test, the parsing works correctly. In the UT, there are multiple versions of **debezium-ddl-parser**. By default, version 1.6.4-Final is used, while MySQL depends on version 1.5.4-Final. Therefore, we can only exclude the 1.6.4-Final version from the Oracle Connector for now. <img width="1046" alt="image" src="https://github.com/apache/inlong/assets/111486498/528bafd7-459c-4ca0-b959-b78a63812270"> ### Modifications Exclude the 1.6.4-Final version from the Oracle Connector. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
