Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9402

Create GREATEST and LEAST udf

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • UDF
    • None
    • Returns the greatest/least value of the list of values

    Description

      GREATEST function returns the greatest value in a list of values
      Signature: T greatest(T v1, T v2, ...)
      all values should be the same type (like in COALESCE)

      LEAST returns the least value in a list of values
      Signature: T least(T v1, T v2, ...)

      Attachments

        1. HIVE-9402.1.patch
          22 kB
          Alexander Pivovarov
        2. HIVE-9402.2.patch
          37 kB
          Alexander Pivovarov
        3. HIVE-9402.3.patch
          37 kB
          Alexander Pivovarov
        4. HIVE-9402.4.patch
          39 kB
          Alexander Pivovarov
        5. HIVE-9402.4.patch
          39 kB
          Alexander Pivovarov
        6. HIVE-9402.5.patch
          39 kB
          Alexander Pivovarov
        7. HIVE-9402.5.patch
          39 kB
          Alexander Pivovarov
        8. HIVE-9402.6.patch
          43 kB
          Alexander Pivovarov
        9. HIVE-9402.7.patch
          43 kB
          Jason Dere

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              apivovarov Alexander Pivovarov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: