This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 63a1e0dccbf [fix](profile) Fix npe when updating profile for internal
load task. #40990 (#41077)
63a1e0dccbf is described below
commit 63a1e0dccbf7469c9aa77503a333543ad80ef942
Author: zhiqiang <[email protected]>
AuthorDate: Fri Sep 20 23:46:43 2024 +0800
[fix](profile) Fix npe when updating profile for internal load task. #40990
(#41077)
cherry pick from #40990
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 027be4c6eed..4fc8e82f4b0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -379,7 +379,7 @@ public class StmtExecutor {
builder.defaultCatalog(context.getCurrentCatalog().getName());
builder.defaultDb(context.getDatabase());
builder.workloadGroup(context.getWorkloadGroupName());
- builder.sqlStatement(originStmt.originStmt);
+ builder.sqlStatement(originStmt == null ? "" : originStmt.originStmt);
builder.isCached(isCached ? "Yes" : "No");
Map<String, Integer> beToInstancesNum = coord == null ?
Maps.newTreeMap() : coord.getBeToInstancesNum();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]