starocean999 commented on code in PR #20694:
URL: https://github.com/apache/doris/pull/20694#discussion_r1232079324


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/NativeInsertStmt.java:
##########
@@ -494,6 +495,24 @@ private void analyzeSubquery(Analyzer analyzer) throws 
UserException {
         queryStmt.setFromInsert(true);
         queryStmt.analyze(analyzer);
 
+        // deal with this case: insert into tbl values();
+        // should try to insert default values for all columns in tbl if set
+        if (isValuesOrConstantSelect) {

Review Comment:
   please add the same feature for nereids.(the new planner) You can "set 
enable_nereids_planner=true" and "set enable_nereids_dml=true" to check the 
current behavior in nereids



-- 
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-unsubscr...@doris.apache.org

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


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

Reply via email to