This is an automated email from the ASF dual-hosted git repository.
lihaopeng 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 705ce9615a1 [ui](profile) Do not do profile format in the FE (#34757)
705ce9615a1 is described below
commit 705ce9615a140b7750bdbbb13692e17403e5bb06
Author: Mryange <[email protected]>
AuthorDate: Tue May 14 15:22:24 2024 +0800
[ui](profile) Do not do profile format in the FE (#34757)
---
.../java/org/apache/doris/httpv2/controller/QueryProfileController.java | 2 --
ui/src/pages/query-profile/index.tsx | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/QueryProfileController.java
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/QueryProfileController.java
index 674c6d90144..3eb8180c53d 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/QueryProfileController.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/QueryProfileController.java
@@ -54,8 +54,6 @@ public class QueryProfileController extends BaseController {
if (profile == null) {
return ResponseEntityBuilder.okWithCommonError("ID " + id + " does
not exist");
}
- profile = profile.replaceAll("\n", "</br>");
- profile = profile.replaceAll(" ", " ");
return ResponseEntityBuilder.ok(profile);
}
diff --git a/ui/src/pages/query-profile/index.tsx
b/ui/src/pages/query-profile/index.tsx
index a71698cec40..1ca1547b961 100644
--- a/ui/src/pages/query-profile/index.tsx
+++ b/ui/src/pages/query-profile/index.tsx
@@ -190,7 +190,7 @@ export default function QueryProfile(params: any) {
{profile ? (
<div
ref={container}
- style={{ background: '#f9f9f9', padding: '20px' }}
+ style={{ background: '#f9f9f9', padding: '20px',
whiteSpace: 'pre-wrap', wordSpacing: '4px' }}
>
{/* {profile} */}
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]