[
https://issues.apache.org/jira/browse/CALCITE-6077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-6077.
----------------------------------
Fix Version/s: 1.36.0
Resolution: Fixed
Fixed in
[7eace909|https://github.com/apache/calcite/commit/7eace909c51a3f56953597264d9c577c4e088852];
thanks for the PR, [~Runking]!
> Add FACTORIAL function (enabled in Hive and Spark libraries)
> ------------------------------------------------------------
>
> Key: CALCITE-6077
> URL: https://issues.apache.org/jira/browse/CALCITE-6077
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.35.0
> Reporter: Runkang He
> Assignee: Runkang He
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.36.0
>
>
> 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:
> {code:sql}
> SELECT factorial(5);
> >120
> {code}
> See more at
> [Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf#LanguageManualUDF-MathematicalFunctions]
> and
> [Spark|https://spark.apache.org/docs/latest/api/sql/index.html#factorial] doc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)