Skip to content

Native engine crashes on concat_ws with literal NULL separator #3339

Closed

Description

@andygrove

Description

When Spark's ConstantFolding optimizer rule is disabled, concat_ws with a literal NULL separator reaches the native engine, which crashes with:

Expected string literal, got None.

How to Reproduce

SET spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding;
SELECT concat_ws(NULL, 'a', 'b');

Expected Behavior

The native engine should handle a NULL separator gracefully — either returning NULL (matching Spark behavior) or falling back to Spark.

Activity

  1. 0lai0 commented on Feb 9, 2026

    @0lai0
    Contributor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrashNative engine crash/panic/segfault

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions