TangSiyang2001 opened a new issue, #20582:
URL: https://github.com/apache/doris/issues/20582

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   In mysql, `insert into tbl values()` will attempt to insert default values 
for all columns if their default values are set.
   
   However, `insert into tbl values()` will result in `Column count doesn't 
match value count` in our logic.
   
   ### Solution
   
   The logic near 
[[here](https://github.com/apache/doris/blob/24fb05ec839d972f8df9a2921189fab64c9e1bf1/fe/fe-core/src/main/java/org/apache/doris/analysis/NativeInsertStmt.java#L494-L497)](https://github.com/apache/doris/blob/24fb05ec839d972f8df9a2921189fab64c9e1bf1/fe/fe-core/src/main/java/org/apache/doris/analysis/NativeInsertStmt.java#L494-L497)
 should be optimized.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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