You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by mb...@apache.org on 2023/12/05 03:37:09 UTC

(asterixdb) branch master updated: [NO ISSUE][UI] Add min/max time.

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

mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git


The following commit(s) were added to refs/heads/master by this push:
     new a72a3873c9 [NO ISSUE][UI] Add min/max time.
a72a3873c9 is described below

commit a72a3873c9b73bec86aea421a64dd457e6fbeff5
Author: Aditya Karad <an...@uci.edu>
AuthorDate: Fri Nov 17 14:58:58 2023 -0800

    [NO ISSUE][UI] Add min/max time.
    
    Change-Id: I0f9df7b7937e0248c6fdae84a527680fbc2fa918
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17952
    Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Reviewed-by: Ian Maxon <im...@uci.edu>
    Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
---
 .../src/node/src/app/dashboard/query/plan-viewer.component.html    | 7 +++++++
 .../src/node/src/app/dashboard/query/plan-viewer.component.ts      | 3 ++-
 .../src/node/src/app/shared/services/async-query.service.ts        | 3 ++-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.html b/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.html
index 4b6ecc5e76..f29dbbb27a 100644
--- a/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.html
+++ b/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.html
@@ -157,6 +157,13 @@ limitations under the License.
               <svg:tspan [attr.x]="node.dimension.width / 2" dy="1.5em">
                 {{node.execution_mode}}
               </svg:tspan>
+
+              <svg:tspan *ngIf="node.min_time" [attr.x]="node.dimension.width / 2" dy="1.5em">
+                Min: {{node.min_time}}
+              </svg:tspan>
+              <svg:tspan *ngIf="node.max_time" [attr.x]="node.dimension.width / 2" dy="1.5em">
+                Max: {{node.max_time}}
+              </svg:tspan>
               <ng-container *ngFor="let details of node.details | keyvalue">
                 <svg:tspan [attr.x]="node.dimension.width / 2" dy="1.5em">
                   {{details.value}}
diff --git a/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.ts b/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.ts
index 4dcee8aa3a..5d42ffadc7 100644
--- a/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.ts
+++ b/asterixdb/asterix-dashboard/src/node/src/app/dashboard/query/plan-viewer.component.ts
@@ -213,7 +213,8 @@ export class PlanViewerComponent {
         nodeToAdd['detailed_label'] = nodes['operatorId'] + " : " + nodes['operator'];
         nodeToAdd['physical_operator'] = nodes['physical-operator'];
         nodeToAdd['execution_mode'] = "[" + nodes['execution-mode'] + "]"
-
+        nodeToAdd['min_time'] = nodes['min-time'];
+        nodeToAdd['max_time'] = nodes['max-time'];
         nodeToAdd["details"] = {};
 
         nodeToAdd['selected'] = false;
diff --git a/asterixdb/asterix-dashboard/src/node/src/app/shared/services/async-query.service.ts b/asterixdb/asterix-dashboard/src/node/src/app/shared/services/async-query.service.ts
index c7c815d658..f19df83b00 100755
--- a/asterixdb/asterix-dashboard/src/node/src/app/shared/services/async-query.service.ts
+++ b/asterixdb/asterix-dashboard/src/node/src/app/shared/services/async-query.service.ts
@@ -214,7 +214,8 @@ export class SQLService {
           'logical-plan': true,
           'optimized-logical-plan': true,
           'plan-format': planFormat,
-          'max-warnings': Number.MAX_SAFE_INTEGER
+          'max-warnings': Number.MAX_SAFE_INTEGER,
+          'profile': 'timings'
         }
 
         if (clientContextID != 'default') {