-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: json builtin object functions allows duplicate keys #48841
Copy link
Copy link
Closed
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the community
Description
Describe the problem
JSON built in functions to create JSON objects succeed to create object even if two similar keys are introduced.
To Reproduce
select json_build_object('k1', 'v1', 'k1', 'v2')
results with
{k1: "v2"}
while I would expect to get an error instead since input obviously is not correct.
/cc @jordanlewis
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the community