Skip to content

Comments

feat: support Spark luhn_check expression#3573

Open
n0r0shi wants to merge 3 commits intoapache:mainfrom
n0r0shi:luhn-check
Open

feat: support Spark luhn_check expression#3573
n0r0shi wants to merge 3 commits intoapache:mainfrom
n0r0shi:luhn-check

Conversation

@n0r0shi
Copy link

@n0r0shi n0r0shi commented Feb 23, 2026

Summary

  • Register datafusion-spark's SparkLuhnCheck UDF and add StaticInvoke handler for ExpressionImplUtils.isLuhnNumber
  • luhn_check was introduced in Spark 3.5 as RuntimeReplaceable, so Comet sees it as a StaticInvoke.

Test plan

  • Column data with valid, invalid, non-numeric, empty, and null values
  • Literal value
  • Null handling

@mbutrovich
Copy link
Contributor

Thanks @n0r0shi! Kicking off CI.

Register datafusion-spark's SparkLuhnCheck UDF and add StaticInvoke
handler for ExpressionImplUtils.isLuhnNumber (Spark 3.5+).
@n0r0shi n0r0shi marked this pull request as ready for review February 24, 2026 09:49
@n0r0shi
Copy link
Author

n0r0shi commented Feb 24, 2026

Fixed a spotless issue. Could you run a CI again?

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.

2 participants