neilconway opened a new issue, #25082:
URL: https://github.com/apache/datafusion/issues/25082
### Describe the bug
Indexing a map whose keys are lists or structs via `map[k]` panics with an
out-of-bounds bit index whenever the matching entry is not the first entry of
the map, or the key is absent.
### To Reproduce
```
-- Works: the match is the first entry
SELECT MAP {[1,2]:1, [3,4]:2}[[1,2]];
-- 1
-- Panics: the match is the second entry
SELECT MAP {[1,2]:1, [3,4]:2}[[3,4]];
-- Panics: absent key
SELECT MAP {[1,2]:1, [3,4]:2}[[9,9]];
-- Panics: struct keys behave the same way
SELECT MAP {named_struct('a',1):1,
named_struct('a',2):2}[named_struct('a',2)];
```
### 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]