flarion-weijun opened a new issue, #18530:
URL: https://github.com/apache/datafusion/issues/18530
### Describe the bug
When reading a table that contains `NULL` map values (where the entire map
is `NULL`, not individual keys within a map), DataFusion's `make_map` function
incorrectly fails with the error "map key cannot be null". This affects queries
that process map columns containing NULL values, particularly when using UDFs
or operations that reconstruct maps.
### To Reproduce
Create a table with a Map column containing NULL values:
```sql
CREATE TABLE test_null_map AS VALUES
('1', MAP {'a': 'ab'}),
('2', NULL),
('3', MAP {'b': 'cd'});
SELECT map_keys(column2) FROM test_null_map;
```
### Expected behavior
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]