Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature](json) Support json_search function in 2.1 #41590

Merged
merged 3 commits into from
Oct 11, 2024

Commits on Oct 11, 2024

  1. [Feature](json) Support json_search function (apache#40948)

    Like mysql, json_search returns the path which point to a json string
    witch match the pattern.
    `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
    'A_') as res;`
    ```
    +----------+
    | res      |
    +----------+
    | "$[2].C" |
    +----------+
    ```
    liutang123 authored and liutang123 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f7adddb View commit details
    Browse the repository at this point in the history
  2. fix compile

    liutang123 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    35c2f6f View commit details
    Browse the repository at this point in the history
  3. fix rt

    liutang123 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    36f9479 View commit details
    Browse the repository at this point in the history