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 query max limit in query dropdown #12509

Closed
michellethomas opened this issue Jan 14, 2021 · 5 comments
Closed

Sqllab query max limit in query dropdown #12509

michellethomas opened this issue Jan 14, 2021 · 5 comments
Assignees
Labels
#bug:regression Bugs that are identified as regessions enhancement:request Enhancement request submitted by anyone from the community P0 Priority item - Critical sqllab:editor

Comments

@michellethomas
Copy link
Contributor

michellethomas commented Jan 14, 2021

Hi, With the new updates to sqllab (🎉 ) it looks like the max limit in the limit dropdown in sqllab is 100,000. Previously, we had the SQL_MAX_ROW config setting to set the max limit on sql queries. Can we allow users to type in their own limit into the limit dropdown (up to SQL_MAX_ROW) or make the dropdown options configurable? It's important for users to have the option of getting more results in sqllab.

image

@michellethomas michellethomas added enhancement:request Enhancement request submitted by anyone from the community sqllab:editor labels Jan 14, 2021
@michellethomas
Copy link
Contributor Author

@hughhhh looks like this was changed in your #12067 Sql toolbar PR, thoughts on how we can get a higher sqllab limit back? Maybe if SQL_MAX_ROW is > 100,000 we can make SQL_MAX_ROW the last option? Or make the dropdown options configurable?

@ktmud
Copy link
Member

ktmud commented Jan 14, 2021

We should replace that dropdown with a CreatableSelect (or set mode="tags" if using AntD select).

@zuzana-vej
Copy link
Contributor

@yousoph

@graceguo-supercat graceguo-supercat added P0 Priority item - Critical #bug:regression Bugs that are identified as regessions labels Jan 14, 2021
@hughhhh hughhhh self-assigned this Jan 14, 2021
@hughhhh
Copy link
Member

hughhhh commented Jan 14, 2021

Just put up #12529 with the fix tell me what you think.

@michellethomas

@yousoph
Copy link
Member

yousoph commented Jan 14, 2021

Immediate solution: Show additional options in the LIMIT dropdown based on SQL_MAX_ROW
If needed, users can customize to a different LIMIT in the query itself
That should solve the most pressing issue but let us know if it doesn't

Also open to exploring a more configurable dropdown in the future if the above doesn't meet user's needs. (I'm always happy to chatting about problems / pain points / use cases if anybody has thoughts! 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug:regression Bugs that are identified as regessions enhancement:request Enhancement request submitted by anyone from the community P0 Priority item - Critical sqllab:editor
Projects
None yet
Development

No branches or pull requests

7 participants