Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12941

Implement the prettyprint_duration Built-in Function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • be
    • ghx-label-3

    Description

      Implement a new Impala built-in function named prettyprint_duration. This function will take in two inputs – a duration (all integer/floating point/decimal types) and a unit (nanoseconds, microseconds, milliseconds, and seconds) and output a prettyprinted, human readable string.

      For example:

      select prettyprint_duration(2147483647, 'nanoseconds,);
      
      output: 2s147ms
      

      Attachments

        Activity

          People

            jasonmfehr Jason Fehr
            jasonmfehr Jason Fehr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: