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

Query Results: querying a column with a dictionary or array fails #3887

Merged
merged 3 commits into from
Jun 11, 2019

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Jun 11, 2019

Issue Summary

When using the Query Results data source to query from a query result that one of the columns if of type dictionary of array, it fails with a cryptic message.

Steps to Reproduce

Example query: https://redash-preview.netlify.com/queries/154/source. When you execute it you get:

Error binding parameter 0 - probably unsupported type.

For starters, we should show a friendlier message, explaining which column had this issue.

As an improved behavior we can convert the value into JSON, so the user can further query it using SQLite's JSON functions.

@rauchy rauchy self-assigned this Jun 11, 2019
@rauchy rauchy requested a review from arikfr June 11, 2019 10:24
@arikfr arikfr merged commit e33ad3b into master Jun 11, 2019
@arikfr arikfr deleted the support-arrays-and-dictionaries-in-query-results branch June 11, 2019 14:41
@arikfr
Copy link
Member Author

arikfr commented Jun 11, 2019

👍

harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
…tredash#3887)

* flatten lists and dicts to json to be used with SQLite's json_extract functions

* add test that verifies that lists and dicts are saved

* add test that verifies that lists and dicts are saved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants