Description
Calling map_from_arrays(NULL, NULL) through Comet's native execution on table data causes a crash with:
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
Description
Calling
map_from_arrays(NULL, NULL)through Comet's native execution on table data causes a crash with:Spark returns NULL for
map_from_arrays(NULL, NULL).Steps to Reproduce
Expected Behavior
Should return NULL, matching Spark behavior.
Actual Behavior
Native execution crashes with "map key cannot be null".
🤖 Generated with Claude Code