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
- Create a superset view, e.g. via the visualize workflow from SQLLab and enable Filter Select for this table.
- Explore the table and try to add a filter on any filterable column.
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 existSteps to reproduce