[fix](profile) Load profile need to be registered to get real-time profile #34852

This commit is contained in:
zhiqiang
2024-05-15 09:56:18 +08:00
committed by yiguolei
parent c7134faea9
commit 00ce05393a

View File

@ -126,6 +126,7 @@ public abstract class AbstractInsertExecutor {
executor.getProfile().addExecutionProfile(coordinator.getExecutionProfile());
QueryInfo queryInfo = new QueryInfo(ConnectContext.get(), executor.getOriginStmtInString(), coordinator);
QeProcessorImpl.INSTANCE.registerQuery(ctx.queryId(), queryInfo);
executor.updateProfile(false);
coordinator.exec();
int execTimeout = ctx.getExecTimeout();
if (LOG.isDebugEnabled()) {