Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5230

Translation of millisecond duration into hours is incorrect

    XMLWordPrintableJSON

Details

    • Important

    Description

      The method

      org.apache.drill.exec.server.rest.profile.TableBuilder.appendMillis(long, String)

      has a bug where the human readable translation of a 1+ hr duration in milliseconds is reported incorrectly.
      This has to do with the

      SimpleDateFormat.format() 

      method incorectly translating it.

      For e.g.

      long x = 4545342L; //1 hour 15 min 45.342 sec
      public void appendMillis(x, null);
      

      This formats the value as

      17h15m

      instead of

      1h15m

      Attachments

        Issue Links

          Activity

            People

              kkhatua Kunal Khatua
              kkhatua Kunal Khatua
              Paul Rogers Paul Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified