TangSiyang2001 commented on code in PR #20694: URL: https://github.com/apache/doris/pull/20694#discussion_r1232414468
########## 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: Nereids works normally with this feature due to regression-test, and related case is added based on the original case. -- 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