-
Notifications
You must be signed in to change notification settings - Fork 296
Native engine crashes on literal sha2() with 'Unsupported argument types' #3340
Copy link
Copy link
Open
Labels
area:expressionsExpression evaluationExpression evaluationbugSomething isn't workingSomething isn't workingcrashNative engine crash/panic/segfaultNative engine crash/panic/segfaultpriority:lowMinor issues, test failures, tooling, cosmeticMinor issues, test failures, tooling, cosmetic
Description
Description
When Spark's ConstantFolding optimizer rule is disabled, an all-literal sha2() call reaches the native engine, which crashes with:
Unsupported argument types for sha2 function
How to Reproduce
SET spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding;
SELECT sha2('test', 256);Expected Behavior
The native engine should handle literal sha2 inputs gracefully — either by computing the correct result or by falling back to Spark.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:expressionsExpression evaluationExpression evaluationbugSomething isn't workingSomething isn't workingcrashNative engine crash/panic/segfaultNative engine crash/panic/segfaultpriority:lowMinor issues, test failures, tooling, cosmeticMinor issues, test failures, tooling, cosmetic