-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[SQL Lab] Removing display limit #6942
[SQL Lab] Removing display limit #6942
Conversation
There's been some back and forth on this and a history of regressions. I think I see a bad merge conflict between My intention originally was to provide the administrator with a hard limit on 1- Now #4941 was created before #5866 and merged after it and appears to deprecate My point is we probably need all 3 configuration settings here. We need to prevent the user from shooting themselves in the foot and return enough row to crash their browser. |
@mistercrunch thanks for the context. I think there may be a few issues with the
I would be concerned that a third configuration setting would surface more confusion. I also feel that #4941 makes it quite explicit that a limit is being applied and I would speculate that the user would expect that number of records (if applicable) rendered. |
f73f5b8
to
e98594a
Compare
Codecov Report
@@ Coverage Diff @@
## master #6942 +/- ##
==========================================
+ Coverage 63.98% 63.99% +0.01%
==========================================
Files 423 423
Lines 20558 20554 -4
Branches 2235 2235
==========================================
Hits 13154 13154
+ Misses 7272 7268 -4
Partials 132 132
Continue to review full report at Codecov.
|
@jeffreythewang et al. do you have any thoughts on this? |
I agree that whatever limit is getting applied should be shown to the user because we are changing the data that's getting returned. I was debugging this issue when someone surfaced a discrepancy between sqllab results and csv download results, and it's pretty difficult to tell if you are seeing a subset or the full result of your query even if you are aware that there could be a difference. If you need to have a |
There's something here displaying a message to the user: I don't have time right this moment to dig in to see whether it still works or if the linkage has been broken with the many PRs in this area. It should show up right next to the query timer as a warning label with a tooltip. We really need to be careful around letting the user crash their browser as it's tricky to fix. There are some intricate issues possible there:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
We're run into issues were users in SQL Lab are expecting the number of records to be displayed to equal that of the
LIMIT
defined either in i) the SQL query, or ii) the UI limit component, however this is truncated to display only the default limit, and there's no mention of this to the user. Note when exporting to CSV the display limit is not applied.Given that the
LIMIT
has already been applied during the compute (defaulting to theDEFAULT_SQLLAB_LIMIT
if neither the query or UI component have been augmented) it seems prudent to not re-apply any additional limit when displaying the results.to: @jeffreythewang @kristw @michellethomas @mistercrunch @timifasubaa