Open sfirke opened 9 months ago
We are experiencing the same issue on v 3.1.0
Hey folks, this issue has gone stale, but at least it was reported in a current version. Is it by any luck fixed in 4.x.x? If nobody wants to tackle it, it might be closed before too long.
I tried to validate it but I ran into a different bug where I'm not able to send .csv attachments for scheduled chart reports: #28595 So I can't validate this either way right now 😩
Summary: after upgrading from 2.1.0 to 3.0.0, a table chart with a time column filter fails to have that filter applied when sent via Alerts & Reports as a .csv attachment or plain text. When table is sent as an image, the chart is filtered correctly.
The filter applying when the chart is sent as an image should hopefully be a clue as to where the problem lies.
Under 2.1.0 The alert sends a .csv with 14 records, as the chart has this filter for last 30 days:![image](https://github.com/apache/superset/assets/7569808/15c9b9d1-6279-4368-acbd-f22b56160b17)
Under 3.0.0 The alert sends a .csv with 219 records, despite the chart itself correctly showing only 14 records. A SQL query confirms that 219 is the total # of records in the table when no time filter is applied.