This is an automated email from the ASF dual-hosted git repository.

alexpl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new defd130d IGNITE-27400 PerfStat: Fix SQL/plan formatting (#331)
defd130d is described below

commit defd130d3c55b2169611860620dd753ae04697b8
Author: Aleksey Plekhanov <[email protected]>
AuthorDate: Tue Dec 23 18:34:03 2025 +0300

    IGNITE-27400 PerfStat: Fix SQL/plan formatting (#331)
---
 modules/performance-statistics-ext/report/css/dashboard.css |  6 ++++++
 modules/performance-statistics-ext/report/js/sqlTab.js      | 10 +++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/modules/performance-statistics-ext/report/css/dashboard.css 
b/modules/performance-statistics-ext/report/css/dashboard.css
index 32e1a31f..6bba1f6b 100644
--- a/modules/performance-statistics-ext/report/css/dashboard.css
+++ b/modules/performance-statistics-ext/report/css/dashboard.css
@@ -124,3 +124,9 @@ body {
       font-size: 3.5rem;
     }
 }
+
+.preformatted-text {
+    white-space: pre-wrap;
+    word-break: break-word;
+    overflow-wrap: anywhere;
+}
diff --git a/modules/performance-statistics-ext/report/js/sqlTab.js 
b/modules/performance-statistics-ext/report/js/sqlTab.js
index de04153f..330acc48 100644
--- a/modules/performance-statistics-ext/report/js/sqlTab.js
+++ b/modules/performance-statistics-ext/report/js/sqlTab.js
@@ -21,6 +21,7 @@ $('#sqlStatisticsTable').bootstrapTable({
     columns: [{
         field: 'text',
         title: 'Query text',
+        class: 'preformatted-text',
         sortable: true
     }, {
         field: 'count',
@@ -42,6 +43,10 @@ $('#sqlStatisticsTable').bootstrapTable({
         field: 'failures',
         title: 'Failures count',
         sortable: true
+    }, {
+        field: 'avg',
+        title: 'Avg. time',
+        sortable: true
     }],
     data: prepareSqlTableData(),
     detailViewIcon: true,
@@ -66,7 +71,8 @@ function prepareSqlTableData() {
             "physicalReads": sqlData["physicalReads"],
             "failures": sqlData["failures"],
             "properties": sqlData["properties"],
-            "rows": sqlData["rows"]
+            "rows": sqlData["rows"],
+            "avg": (sqlData["duration"] / sqlData["count"]).toFixed(3)
         });
     });
 
@@ -79,6 +85,7 @@ $('#topSlowSqlTable').bootstrapTable({
     columns: [{
         field: 'text',
         title: 'Query text',
+        class: 'preformatted-text',
         sortable: true
     }, {
         field: 'duration',
@@ -173,6 +180,7 @@ function buildPropertiesSubTable($el, properties) {
         }, {
             field: 'value',
             title: 'Property value',
+            class: 'preformatted-text',
             sortable: true
         }, {
             field: 'count',

Reply via email to