tlm365 opened a new issue, #16124:
URL: https://github.com/apache/datafusion/issues/16124

   ### Is your feature request related to a problem or challenge?
   
   - Part of #15914 
   
   ### Describe the solution you'd like
   
   Implement spark-compatible 
[factorial](https://spark.apache.org/docs/latest/api/sql/index.html#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 - unlimited `expr` theoretical (in fact, 
also support [0..20] due to the MAX limit of `i64`) and raise error when 
overflow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to