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: [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]