Skip to content

[Bug] get_json_string does not support array #58815

@y115520509

Description

@y115520509

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.1.11 branch-2.1

What's Wrong?

SELECT get_json_string(
    '[{"k1":"v1"}, {"k2":"v2"}, {"k1":"v3"}, {"k1":"v4"}]', 
    '$.k1'
);

I can run this sql in 2.1.10 version

Image

but after upgrade version to 2.1.11 ,it run fail

Image

What You Expected?

just report this bug

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions