zy-kkk opened a new pull request, #20765:
URL: https://github.com/apache/doris/pull/20765

   ## Proposed changes
   
   Issue Number: close #xxx
   
   This PR enhances the support for auto-increment columns and default value 
columns in the MySQL JDBC catalog of Doris, mainly via the following changes:
   
   In JdbcMysqlClient, I've added methods to retrieve auto-increment and 
default value columns from MySQL. These columns are then mapped into Doris 
metadata to make them visible to users.
   
   When handling the InsertStmt into an execution plan, Doris used to 
automatically fill in NULL or default values for columns not specified in the 
InsertStmt. However, in the JDBC catalog, we don't need Doris to handle these 
unspecified columns, so I've made changes to skip them directly.
   
   For the insert prepared statement required for writing, our previous 
behavior was to obtain all columns for placeholders. So, the change I made is 
to pass in the columns processed by the execution plan during the sink task 
generation stage for dynamic generation.
   
   ## 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]

Reply via email to