Skip to content

Conversation

@0lai0
Copy link

@0lai0 0lai0 commented Feb 10, 2026

Which issue does this PR close?

Closes #3340
part of #3328

Rationale for this change

When Spark's ConstantFolding optimizer rule is disabled, an all-literal sha2('test', 256) call reaches the native engine as ScalarValue arguments.

What changes are included in this PR?

Added a dedicated scalar execution path to handle literal inputs, preventing crashes when ConstantFolding is disabled.

How are these changes tested?

cargo test -p datafusion-comet-spark-expr hash_funcs::sha2::tests

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.

Native engine crashes on literal sha2() with 'Unsupported argument types'

1 participant