zy-kkk opened a new pull request, #21297: URL: https://github.com/apache/doris/pull/21297
## Proposed changes cherry-pick from #21296 This pull request addresses the issue encountered when JDBC Catalog reads zero datetime values (0000-00-00 00:00:00) from non-nullable columns in MySQL. JDBC has difficulty handling such datetime format, which leads to read errors. The proposed solution introduces the parameter zeroDateTimeBehavior=convertToNull in the jdbc_url. In this manner, when JDBC encounters 0000-00-00 00:00:00, it will convert these zero datetime values to null. Consequently, Doris will treat the DateTime column as a nullable type, allowing the read operation to proceed successfully. This change ensures data integrity and enhances read reliability when working with MySQL data sources. ## Further comments If this is a relatively large or complex change, kick off the discussion at [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
