mymeiyi commented on code in PR #31666: URL: https://github.com/apache/doris/pull/31666#discussion_r1512535050
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertIntoTableCommand.java: ########## @@ -146,13 +146,14 @@ private void runInternal(ConnectContext ctx, StmtExecutor executor) throws Excep Preconditions.checkArgument(plan.isPresent(), "insert into command must contain target table"); PhysicalSink physicalSink = plan.get(); DataSink sink = planner.getFragments().get(0).getSink(); - String label = this.labelName.orElse(String.format("label_%x_%x", ctx.queryId().hi, ctx.queryId().lo)); if (physicalSink instanceof PhysicalOlapTableSink) { if (GroupCommitInserter.groupCommit(ctx, sink, physicalSink)) { return; } OlapTable olapTable = (OlapTable) targetTableIf; + String label = this.labelName.orElse( + ctx.isTxnModel() ? null : String.format("label_%x_%x", ctx.queryId().hi, ctx.queryId().lo)); Review Comment: done -- 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