-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[Regression] ECharts rows count indicator pill is lying #26402
Comments
Just checked: Superset 2.0.1 was also affected by this bug. |
In your example under Actual Results, are you saying that 31 should also be highlighted red? If so, I agree |
@yousoph, I don't know what's the best way to deal with it.
Both can be somewhat confusing to the user, as the pivoting happens without the user explicitly asking for it. Tho the user may be confused that the limit is set to 100 and the indicator warms that we ran into the limit with only 31 rows. Anyway, I think technically the 2nd option is cleaner and less (often) confusing. |
@rumbin would you want to join our next Superset Town Hall and discuss this? I think there are a lot of intricacies to it... it might be a bit much to hash out in typed form. I like the as-is row count limit (query results) being displayed and triggering the red limit warning. This is partly because the limit you're encountering is based on the chart executing it's logic. If you change charts, you're still subject to these limitations. The row limit is indeed being hit, so it's not fundamentally wrong. Also, in certain circumstances, if you set the limit to be 100 pivoted rows, that could be some gigantic number of database rows, which would cause all sorts of problems. But... it's a good thing to know, and a reasonable thing to have its own limit control for. I think having a limit for things lie this (number of pivoted rows, number of bars on a bar chart, number of clusters on a map) is useful, and should probably have a means to trigger a separate limit warning alongside the row limit one. So... I think there's a lot of design discussion to go into here. Which might turn into a non-trivial engineering project. I'm not sure who has the bandwidth to take that on in their roadmap if we align on the design, but its sounds like a SIP :) |
Closing this as resolved by the linked PR. Holler if it needs any further attention. |
The rows count indicator pill is lying for (timeseries?) ECharts (Line Chart, Bar Chart, Area Chart,...) when grouping by dimensions.
In my understanding this is caused by the result set being pivoted across the chosen dimensions and counting the rows only after the pivot operation.
This bug is causing users to misjudge the influence of the applied row limit, as it conceals the fact that the row limit has been reached!
I labeled this issue as a regression, as I cannot remember having encountered this issue for, e.g. the old Time series line/bar charts. But I haven't checked, if this issue was introduced by ECharts or if it used to work there as well.
How to reproduce the bug
ts
as x-axis,series
as the dimension andavg(val)
as the metricExpected results
The row indicator pill must display
100 rows
on a red background, in order to indicate that we ran into the ROW LIMIT.We can observe the expected behavior when switching to a Pivot Table chart:
Notice how the RESULTS table shows the data in un-pivoted representation.
Actual results
n/a
values in the RESULTS table.31 rows
, i.e. far away from the applied ROW LIMITEnvironment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Somewhat related issues:
The text was updated successfully, but these errors were encountered: