Skip to content

feat: add support for aes_decrypt expression#3497

Draft
rafafrdz wants to merge 6 commits intoapache:mainfrom
rafafrdz:feat/add-support-aes_decrypt
Draft

feat: add support for aes_decrypt expression#3497
rafafrdz wants to merge 6 commits intoapache:mainfrom
rafafrdz:feat/add-support-aes_decrypt

Conversation

@rafafrdz
Copy link

Summary

  • Added support for Spark aes_decrypt by mapping AesDecrypt to native scalar function aes_decrypt.
  • Added tests for aes_decrypt in CometStringExpressionSuite covering both:
    • default args: aes_decrypt(input, key)
    • explicit args: aes_decrypt(input, key, mode, padding, aad)
  • Updated spark_expressions_support.md to mark aes_decrypt as supported.
    Closes [Feature] Support Spark expression: aes_decrypt #3188

@rafafrdz rafafrdz force-pushed the feat/add-support-aes_decrypt branch from 3b7cc7f to eb318d1 Compare February 13, 2026 13:11
@rafafrdz rafafrdz marked this pull request as draft February 13, 2026 13:26
classOf[Sha1] -> CometSha1)

private val stringExpressions: Map[Class[_ <: Expression], CometExpressionSerde[_]] = Map(
classOf[AesDecrypt] -> CometScalarFunction("aes_decrypt"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Spark is using StaticInvoke for AesDescrypt, you likely need to add special handing in CometStaticInvoke

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.

[Feature] Support Spark expression: aes_decrypt

2 participants