You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ya...@apache.org on 2022/10/26 06:28:04 UTC
[doris] branch master updated: [Bugfix](manager) fix query profile key incompatible with old versions (#13596)
This is an automated email from the ASF dual-hosted git repository.
yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 0841c5bf28 [Bugfix](manager) fix query profile key incompatible with old versions (#13596)
0841c5bf28 is described below
commit 0841c5bf28e6f48f2e15fd423a8c76487de7e914
Author: Zhengguo Yang <ya...@gmail.com>
AuthorDate: Wed Oct 26 14:27:58 2022 +0800
[Bugfix](manager) fix query profile key incompatible with old versions (#13596)
---
.../org/apache/doris/httpv2/rest/manager/QueryProfileAction.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/QueryProfileAction.java b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/QueryProfileAction.java
index 4d0f11f893..b395990f74 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/QueryProfileAction.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/QueryProfileAction.java
@@ -429,8 +429,9 @@ public class QueryProfileAction extends RestBaseController {
Map<String, String> result = Maps.newHashMap();
if (!dataList.isEmpty()) {
try {
- String profile = JsonParser.parseString(dataList.get(0)).getAsJsonObject().get("profile").getAsString();
- result.put("profile", profile);
+ String key = format.equals("graph") ? "graph" : "profile";
+ String profile = JsonParser.parseString(dataList.get(0)).getAsJsonObject().get(key).getAsString();
+ result.put(key, profile);
} catch (Exception e) {
return ResponseEntityBuilder.badRequest(e.getMessage());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org