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

add WIDTH_BUCKET() function

    XMLWordPrintableJSON

Details

    Description

      Add the built-in function
      WIDTH_BUCKET (expr, min_value, max_value, num_buckets)

      <width bucket function> is a function of four arguments, returning an integer between 0 (zero) and the value of the final argument plus 1 (one), by assigning the first argument to an equi-width partitioning of the range of numbers between the second and third arguments. Values outside the range between the second and third arguments are assigned to either 0 (zero) or the value of the final argument plus 1 (one).

      References:

      Attachments

        Issue Links

          Activity

            People

              anujphadke Anuj Phadke
              grahn Greg Rahn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: