mymeiyi commented on code in PR #31666: URL: https://github.com/apache/doris/pull/31666#discussion_r1512053932
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertUtils.java: ########## @@ -162,6 +162,10 @@ private static InternalService.PDataRow getRowStringValue(List<NamedExpression> private static void beginBatchInsertTransaction(ConnectContext ctx, String dbName, String tblName, List<Column> columns) { TransactionEntry txnEntry = ctx.getTxnEntry(); + if (txnEntry.isTransactionBegan()) { + throw new AnalysisException( + "Transaction insert can not insert into values and insert into select at the same time"); Review Comment: `isTransactionBegan` meas the `insert into select` already began a txn. This function will begin a txn for `insert into values`. Currently we forbid it, maybe support it later. -- 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