-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[explore] fetching of column values for filters not working with superset views #2810
Comments
This looks postgres specific, can you please share the full stacktrace from the web server? |
It is definitely not postgres specific. I just tested it with a fresh installation, using nothing but the default SQLite database. Steps to reproduce
As stated before: as far as I understand, the query should be run against the subquery that is defined by the superset view, rather than just against its table name. |
Oh I understand now. |
Here's the fix #2816 |
Thanks for the quick fix! |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.18.2
Expected results
Tables defined via SQL statement (superset view), e.g. via the visualize workflow from SQLLab, should behave like regular tables or views with respect to the filter select functionality in explore view.
I.e., fetching on distinct column values should succeed.
Actual results
Fetching of distinct column values fails because the SQL query is not run agains the superset view as a subquery, but against the table name. In general, this table is of course not known by the SQL server.
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) relation "test_superset_view" does not exist
Steps to reproduce
The text was updated successfully, but these errors were encountered: