Skip to content

Comments

feat: support factorial, pmod, and rint expressions#3586

Open
n0r0shi wants to merge 1 commit intoapache:mainfrom
n0r0shi:math-funcs
Open

feat: support factorial, pmod, and rint expressions#3586
n0r0shi wants to merge 1 commit intoapache:mainfrom
n0r0shi:math-funcs

Conversation

@n0r0shi
Copy link

@n0r0shi n0r0shi commented Feb 25, 2026

Summary

  • Wire three math functions from the datafusion-spark crate (SparkFactorial, SparkPmod, SparkRint) to Comet
  • Register in jni_api.rs and add serde mappings via CometScalarFunction in QueryPlanSerde.scala

Test plan

  • New tests in CometMathExpressionSuite (factorial, pmod, rint) — all pass
  • Spotless formatting check passes
  • Rust native build passes

Register datafusion-spark's SparkFactorial, SparkPmod, and SparkRint
UDFs and add serde mappings in mathExpressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant