wanyu0315 opened a new pull request, #60277: URL: https://github.com/apache/doris/pull/60277
What problem does this PR solve? Issue Number: close #60163 Problem Summary: When querying the MySQL JDBC catalog, the table_comment field is empty. This happens because the MySQL JDBC driver requires specific properties to fetch metadata comments. This PR adds remarks=true and useInformationSchema=true to the JDBC connection URL in JdbcMySQLClient to ensure table comments are correctly retrieved. Release note [Catalog] Fix the issue where MySQL JDBC Catalog table comments were missing. Check List (For Author) Test - [ ] Regression test [ ] Unit Test [x] Manual test (add detailed scripts or steps below) [ ] No need to test or manual test. Explain why: [ ] This is a refactor/code format and no logic has been changed. [ ] Previous test can cover this change. [ ] No code files have been changed. [ ] Other reason Manual Test Steps: Create a MySQL Catalog in Doris. Run SQL: select table_schema, table_name, table_comment from my_mysql_catalog.information_schema.tables; Verify that the table_comment column is not null and displays the correct comment from MySQL. Behavior changed: [ ] No. [x] Yes. The table_comment field in MySQL JDBC Catalog tables will now return the actual comment instead of being empty. Does this need documentation? [x] No. [ ] Yes. ### Check List (For Reviewer who merge this PR) [ ] Confirm the release note [ ] Confirm test cases [ ] Confirm document [ ] Add branch pick label --- -- 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]
