Skip to content

[SPARK-52014][SQL] Support FoldableUnevaluable in HiveGenericUDFEvaluator #50800

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wankunde
Copy link
Contributor

@wankunde wankunde commented May 6, 2025

What changes were proposed in this pull request?

FoldableUnevaluable expression will throw exception in HiveGenericUDFEvaluator, we should skip eval() for them.

case _ if expr.foldable => toInspector(Literal.create(expr.eval(), expr.dataType))

Why are the changes needed?

Bug fix for HiveGenericUDFEvaluator

Does this PR introduce any user-facing change?

No

How was this patch tested?

Add UT

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label May 6, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant