Skip to content

[Feature Request]: support json_extract function  #4644

Closed

Description

@mooleetzi

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

  1. get input from cmd line
    input
    > select json_extract('{"a":1,"b":2}','$.a');
    output
    | json_extract({"a":1,"b":2},$.a) |
    |---------------------|
    | 1 |

  2. get input from table column
    table t1 data
    | a | b |
    |---------------|---|
    | {"a":1,"b":2} | 1 |
    | {"a":6,"b":7} | 2 |

    input
    > select json_extract(t1.a,'$.a') from t1 where b=1;
    output

    json_extract(t1.a,$.a)
    1

    input
    > select json_extract(t1.a,'$.a') from t1;
    output

    json_extract(t1.a,$.a)
    1
    6

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

Activity

  1. changed the title [-][Feature Request]: support jq function [/-] [+][Feature Request]: support json_extract function [/+] on Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions