1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to parse json data in a column with Druid SQL?

Discussão em 'Outras Linguagens' iniciado por Stack, Abril 22, 2021.

  1. Stack

    Stack Membro Participativo

    I'm trying to parse json data in a column with Druid SQL in Superset SQL lab. My table looks like this:

    id json_scores
    0 {"foo": 20, "bar": 10}
    1 {"foo": 30, "bar": 10}

    I'm looking for something similar to json_extract in MySQL e.g.

    SELECT *
    FROM my_table
    WHERE json_extract(json_scores, '$.foo') > 10;

    Continue reading...

Compartilhe esta Página