xylaaaaa opened a new pull request, #62781:
URL: https://github.com/apache/doris/pull/62781

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary:
   JDBC external catalogs were dropping `COLUMN_DEF` when FE converted JDBC 
column metadata into Doris `Column` objects. As a result, external JDBC tables 
lost their default values in Doris metadata, and downstream tools such as 
Metabase could not read `database_default` for those columns.
   
   ### Release note
   
   Preserve default values for JDBC external table columns in FE metadata.
   
   ### Check List (For Author)
   
   - Test: FE unit test / Manual test
       - Unit Test: `./run-fe-ut.sh --run 
org.apache.doris.datasource.jdbc.util.JdbcFieldSchemaTest`
       - Unit Test: `./run-fe-ut.sh --run 
org.apache.doris.datasource.jdbc.client.JdbcMySQLClientTest`
       - Manual test: `./build.sh --fe`
       - Manual test: verified `SHOW FULL COLUMNS FROM 
doris_jdbc_catalog.regression_test_jdbc_catalog_p0.test_insert_order` returns 
defaults (`aid=0`, `pname=其他`)
       - Manual test: verified fresh Metabase metadata now shows 
`database_default=0` for `aid` and `database_default=其他` for `pname`
   - Behavior changed: Yes (external JDBC column defaults are now preserved in 
FE metadata)
   - Does this need documentation: No
   


-- 
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]

Reply via email to