Skip to content
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

Sqllab row limit controls don't get applied #7590

Closed
3 tasks done
michellethomas opened this issue May 24, 2019 · 1 comment · Fixed by #7641
Closed
3 tasks done

Sqllab row limit controls don't get applied #7590

michellethomas opened this issue May 24, 2019 · 1 comment · Fixed by #7641
Labels
!deprecated-label:bug Deprecated label - Use #bug instead P1 Priority item - Major v0.31 v0.33

Comments

@michellethomas
Copy link
Contributor

Row limit controls in sqllab don't get applied. As noted in this PR if your DEFAULT_SQLLAB_LIMIT is 1000 and in the UI you set the row limit to 5000, 1000 rows will be shown in the UI instead of 5000.

We tried to resolve this in the above PR by removing the display limit but could not get consensus on that approach. If people feel strongly about having a DEFAULT_SQLLAB_LIMIT, and a SQL_MAX_ROW we can allow SQL_MAX_ROW to be None if a deployment doesn't want to set a max.

Setting this to P1 bug because the UI is not showing correct information to the user based on the controls.

Expected results

Changing the row limit in the UI

Actual results

Changing the row limit does not get applied instead DEFAULT_SQLLAB_LIMIT is shown

How to reproduce the bug

  1. Go to sqllab
  2. Click on limit control
  3. Run query
  4. Check that data shown in UI is not the same as in csv download

Environment

(please complete the following information):

  • superset version: master

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Related bugs: #7310, #6666

@mistercrunch @john-bodley

@michellethomas michellethomas added v0.31 v0.33 P1 Priority item - Major labels May 24, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.80. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the !deprecated-label:bug Deprecated label - Use #bug instead label May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead P1 Priority item - Major v0.31 v0.33
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant