-
Notifications
You must be signed in to change notification settings - Fork 14.9k
feat: custom limit sqllab #33204
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
base: master
Are you sure you want to change the base?
feat: custom limit sqllab #33204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Missing NaN check in number parsing ▹ view | ✅ Fix detected |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/SqlLab/components/QueryLimitSelect/index.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
superset-frontend/src/SqlLab/components/QueryLimitSelect/index.tsx
Outdated
Show resolved
Hide resolved
In select too, i would have implemented in same fashion because rest options in dropdown are just clickable and this one is customized to take input, thats why i didn't changed existing implementation of dropdown from Menu to Select, just added a new Input field as a new menu item in current Menu. |
@rusackas i did few more changes, |
Pls check |
Earlier in SQL lab we had limited options to use as limit of number of rows in sql results. These options were only [10,100,1000, 10000, 100000]
Earlier it used to look like :

I have added an option to put your custom limit while fetching sql query results as below :



One can put their custom limit in input text and hit enter, and that limit will be applied while fetching number of rows in sql results.
Use cases:
Actually earlier once for me requirement came to fetch 700 results, so i had two options to complete the task i.e (put limit 700 in query itself, but in that case this limit feature does not makes any sense, it becomes useless), and second way is fetch 1000 results, then download csv and then remove 300 rows(but this results in lot of overhead)
-> To resolve above drawbacks this feature of custom limit is helpfull.