-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"Drill to Details by" Feature Ignores Applied Filters in Superset 4.0.1 #28562
Comments
The issue you're experiencing with the "Drill to details by" feature not applying filters correctly in Apache Superset version 4.0.1 is recognized and has been addressed in a subsequent update. Specifically, a fix related to enabling the DrillBy feature in charts without filters (dimensions) might also resolve issues related to filter application in drill-down SQL query generation. This fix is documented in the pull request #27941. The "Drill to details by" feature's behavior, including how it handles filters in SQL query generation, is influenced by several factors, including chart configurations, user permissions, and the specific version of Superset you're using. Known limitations in version 4.0.1, such as database support, aggregations, filters requirement, and chart type support, could also contribute to the problem. To address this issue, ensure you're running a version of Superset that includes the fix mentioned above. If the problem persists even after updating, it may be worth reviewing the specific configurations and settings related to the "Drill to details by" feature in your Superset installation, including chart type support and filter handling. If you need further assistance or have additional questions, feel free to ask.
|
Hi , |
To resolve the issue where the "Drill to details by" feature in Apache Superset version 4.0.1 ignores applied filters, ensure that filters are correctly passed and applied both in the frontend and backend. Frontend Changes
Backend Changes
By ensuring that filters are correctly passed and applied at each step, you should be able to resolve the issue where the "Drill to details by" feature ignores the applied filters.
|
Bug description
In Superset, the "Drill to details by" feature does not apply filters correctly when generating the SQL query. If used without any filters, all raw data is displayed correctly. However, when filters are applied and the feature is used, the generated SQL query does not include the filters, resulting in the display of raw records instead of the filtered records in the drill down.
How to reproduce the bug
Create a Virtual Dataset:
Create a Virtual Dataset for Filter:
Create a Pivot Table Chart:
Create a Dashboard Filter:
**Test without Applying Filter:
Apply Filter and Test Again:
Expected Behavior
The generated SQL query for the drill down should include the applied filters, and the drill down should display the filtered records.
Screenshots/recordings
Superset version
4.0.1
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
When creating a dashboard, I performed the following steps:
SalesDataset
with a filter condition for company.region as rows, customer_name as columns, and count(sales_usd)
as the metric.CompanyFilterDataSet
on thecompany
column.Checklist
The text was updated successfully, but these errors were encountered: