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 <yangz...@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-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to