Skip to content

[Question] How can I query a JSON field from Superset? #95

@almirb

Description

@almirb

Hello!

Our OpenDistro has a field with JSON content.
How can I filter the JSON values of this field using queries in Superset?

The field looks like:

{ "browser" : "Android", "device_vendor": "Samsung" }
{ "browser" : "Safari", "device_vendor": "Apple" }

And I want to filter all rows that are belonging to Android or iOS.

PS.: In PostgreSQL, we usually filter them with: and my_field ->> 'browser' = 'Android'. But It didn't work when querying OpenDistro.

Thanks!

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