Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6077

Add FACTORIAL function (enabled in Hive and Spark libraries)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.35.0
    • 1.36.0
    • core

    Description

      Add FACTORIAL function (enabled in Hive and Spark libraries)
      FACTORIAL(expr): Returns the factorial of expr. expr is [0..20]. Otherwise, returns NULL.
      For example:

      SELECT factorial(5); 
      >120
      

      See more at Hive and Spark doc.

      Attachments

        Issue Links

          Activity

            People

              Runking Runkang He
              Runking Runkang He
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: