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

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

Open
almirb opened this issue Sep 19, 2022 · 0 comments
Open

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

almirb opened this issue Sep 19, 2022 · 0 comments

Comments

@almirb
Copy link

almirb commented Sep 19, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant