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

Create Factorial UDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • UDF
    • None

    Description

      Function signature: factorial(int a): bigint

      For example 5!= 5*4*3*2*1=120

      select factorial(5);
      OK
      120
      

      Attachments

        1. HIVE-9857.1.patch
          11 kB
          Alexander Pivovarov
        2. HIVE-9857.2.patch
          11 kB
          Alexander Pivovarov
        3. HIVE-9857.3.patch
          11 kB
          Alexander Pivovarov

        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: