drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkhatua <...@git.apache.org>
Subject [GitHub] drill pull request #719: DRILL-5172: Display elapsed time for queries in the...
Date Tue, 10 Jan 2017 22:09:18 GMT
Github user kkhatua commented on a diff in the pull request:

    --- Diff: protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java ---
    @@ -13595,6 +13597,17 @@ public long getEnd() {
           return end_;
    +    public String getDuration() {
    --- End diff --
    The ProfileInfo class is actually where the change was made to retrieve the value from
the model. We don't create any duration field, as it is computed based on the other 2 fields
(start,end) and simply provide a getter for that. However, the ProfileInfo class is used only
by the profiles listing freemarker template (list.ftl). 
    For the individual query profile's template (profile.ftl), the model from which we retrieve
the duration value is auto-generated by the protobuf, making this a lot more complicated to
implement. Hence, we took the JavaScript approach. 
    I'll probably refine it to strictly follow the MVC model when I'm attempting a fix for
DRILL-5190 https://issues.apache.org/jira/browse/DRILL-5190  [Display planning time for a
query in its profile page ] , since that would require me to modify the protobuf.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message