Open
Description
Is your feature request related to a problem or challenge?
Describe the solution you'd like
Implement spark-compatible factorial function.
Describe alternatives you've considered
No response
Additional context
- Spark
factorial
behaviour:
factorial(expr) - Returns the factorial of expr. expr is [0..20]. Otherwise, null.
- DataFusion
factorial
behaviour - unlimitedexpr
theoretical (in fact, also support [0..20] due to the MAX limit ofi64
) and raise error when overflow.