You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "TangSiyang2001 (via GitHub)" <gi...@apache.org> on 2023/06/08 05:34:23 UTC

[GitHub] [doris] TangSiyang2001 opened a new issue, #20582: [Enhancement] make `insert into tbl values ()` compliance with mysql protocol

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: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] yiguolei closed issue #20582: [Enhancement] make `insert into tbl values ()` compliance with mysql protocol

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #20582: [Enhancement] make `insert into tbl values ()` compliance with mysql protocol
URL: https://github.com/apache/doris/issues/20582


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org