Skip to content

sql: json builtin object functions allows duplicate keys #48841

@C0rWin

Description

@C0rWin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions