Skip to content

map_from_arrays() with NULL inputs causes native crash #3327

@andygrove

Description

@andygrove

Description

Calling map_from_arrays(NULL, NULL) through Comet's native execution on table data causes a crash with:

map key cannot be null

Spark returns NULL for map_from_arrays(NULL, NULL).

Steps to Reproduce

CREATE TABLE test_map(k array<string>, v array<int>) USING parquet;
INSERT INTO test_map VALUES (NULL, NULL);
SELECT map_from_arrays(k, v) FROM test_map;

Expected Behavior

Should return NULL, matching Spark behavior.

Actual Behavior

Native execution crashes with "map key cannot be null".

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashNative engine crash/panic/segfault

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions