datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

[datafusion-spark] Implement `factorical` function

Open tlm365 opened this issue 7 months ago • 2 comments

Which issue does this PR close?

  • Closes #16124 .

Rationale for this change

What changes are included in this PR?

Implement spark-compatible factorical function

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

tlm365 avatar May 21 '25 01:05 tlm365

@tlm365 - I wonder if you would be willing to help pick this PR back up now that we have merged a PR with a bunch of tests from @shehabgamin here:

  • https://github.com/apache/datafusion/pull/16409

We are hoping to generate some example PRs to use when starting to fill out the rest of the functions and I was thinking this one might be a good one

alamb avatar Jun 17 '25 22:06 alamb

@tlm365 - I wonder if you would be willing to help pick this PR back up now that we have merged a PR with a bunch of tests from @shehabgamin here:

* [chore: generate basic spark function tests #16409](https://github.com/apache/datafusion/pull/16409)

@alamb Sure! I'd be happy to help pick this PR back. Thanks for pointing me to the recent test additions — that will definitely help.

tlm365 avatar Jun 18 '25 06:06 tlm365

FYI @shehabgamin

alamb avatar Jun 20 '25 19:06 alamb

Thank you @tlm365 -- this looks great to me

What do you think @shehabgamin -- anything else that this PR should have (I am hoping to use it as an example when porting other functions)

@alamb @tlm365 I will review this in the next couple of hours!

shehabgamin avatar Jun 22 '25 04:06 shehabgamin

gogogogogogo

THanks again @shehabgamin and @tlm365

alamb avatar Jun 23 '25 19:06 alamb