Surya Hebbar has uploaded a new patch set (#2). ( 
http://gerrit.cloudera.org:8080/20867 )

Change subject: IMPALA-12688: Support JSON profile imports for visualizing 
query timeline in webUI
......................................................................

IMPALA-12688: Support JSON profile imports for visualizing query timeline in 
webUI

A button has been added to import query profiles on the queries page.

The button opens a system dialog to browse only "*.json" files from
client's local file system. This allows JSON query profiles to be imported.

JSON profiles are read from file system using FileReader API and then
these imported query profiles are stored in a NoSQL database using browser's
IndexedDB API.

IndexedDB is a large-scale NoSQL database system, that can be read and
written to asynchronously. Hence, the file size of JSON profiles is only
limited by the storage available on the client system.

The profile is parsed for the following attributes, which will be
displayed on the queries page. Number of imported queries is also
displayed.

- Query ID
- User
- Default Db
- Query Type
- Start Time
- End Time
- Duration
- Bytes Read
- Bytes Sent
- Query State
- No. of rows fetched
- Resource Pool
- Query Statement

On opening any of the imported queries, its query timeline will be
displayed. Currently the following tabs are supported for imported
queries.

- Query Statement
- Query Timeline
- Query Text Plan

Syntax highlighting on query statement tab has also been supported.

Change-Id: Ife6eb59bf2030fd19fc92aaf134eb51c609e04d0
---
M www/queries.tmpl
M www/query_plan_text.tmpl
M www/query_stmt.tmpl
M www/query_timeline.tmpl
M www/scripts/query_timeline/fragment_metrics_diagram.js
M www/scripts/query_timeline/host_utilization_diagram.js
6 files changed, 325 insertions(+), 35 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20867/2
--
To view, visit http://gerrit.cloudera.org:8080/20867
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ife6eb59bf2030fd19fc92aaf134eb51c609e04d0
Gerrit-Change-Number: 20867
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sheb...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kdesc...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <riza.sumi...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>

Reply via email to