aboutsummaryrefslogtreecommitdiff
path: root/protocol/src/main/protobuf
diff options
context:
space:
mode:
authorKunal Khatua <kkhatua@maprtech.com>2017-02-21 23:06:54 -0800
committerSudheesh Katkam <sudheesh@apache.org>2017-02-24 19:01:40 -0800
commit68921645401f02ff2192bb0136397f7776fec30e (patch)
treec2800290609f51db2d75c03befeb34bdb6de0953 /protocol/src/main/protobuf
parentcd8af10f70a6bab4795e24b882d277ade06d402b (diff)
DRILL-5190: Display planning and queued time for a query's profile page
Modified UserSharedBit protobuf for marking planning and wait-in-queue end times. This will allow for accurately reporting the planning, queued and actual execution times of a query. Planning Time: In the absence of the planning time's end, for older profiles, the root fragment's (i.e. SCREEN operator) start time is taken as the estimated end of planning time, and as the estimated start time of the execution phase. QueueWait Time: We do not estimate the queue time if the planning end time is not available. Execution Time: We calculate the execution time based on the availability of these 2 planning time. The computation is done the following way, and reflects a decreasing level of accuracy 1. Execution time = [end(QueueWait) - endTime(Query)] 2. Execution time = [end(Planning) - endTime(Query)] 3. Execution time = [start(rootFragment) - endTime(Query)] - {Estimated} closes #738
Diffstat (limited to 'protocol/src/main/protobuf')
-rw-r--r--protocol/src/main/protobuf/UserBitShared.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocol/src/main/protobuf/UserBitShared.proto b/protocol/src/main/protobuf/UserBitShared.proto
index 5efca2d20..0ba7e0603 100644
--- a/protocol/src/main/protobuf/UserBitShared.proto
+++ b/protocol/src/main/protobuf/UserBitShared.proto
@@ -207,6 +207,8 @@ message QueryProfile {
optional string error_id = 15;
optional string error_node = 16;
optional string options_json = 17;
+ optional int64 planEnd = 18;
+ optional int64 queueWaitEnd = 19;
}
message MajorFragmentProfile {