Closed cdevacc1 closed 1 month ago
SELECT JSON_KEYS(JSON '{"a": {"b":1}}', 1) AS json_keys
The query above return Null. It should return 'a'
The problem here appears to be that ARRAY result types are not handled correctly: JSON_KEYS has a return type of ARRAY<string>
ARRAY<string>
This can be reproduced by:
SELECT GENERATE_ARRAY(1, 5) AS example_array
SELECT JSON_KEYS(JSON '{"a": {"b":1}}', 1) AS json_keys
The query above return Null. It should return 'a'