jcellary opened a new issue, #32750: URL: https://github.com/apache/superset/issues/32750
### Bug description Queries run in SQL lab have a limit added to it. However when a query uses Common Table Expressions (CTE) it does not. E.g. ``` select * from some_db.some_table; ``` When you select a 10 rows limit from the dropdown, then 10 rows are fetched. When you run ``` with data as (select * from some_db.some_table) select * from data; ``` Then no limit is applied and the entire data set is fetched. This can be problematic, e.g. in our case someone run a query on a big dataset which resulted in > 20 GB of data being loaded into memory which crashed the superset worker. ### Screenshots/recordings _No response_ ### Superset version 4.1.1 ### Python version 3.11 ### Node version I don't know ### Browser Chrome ### Additional context _No response_ ### Checklist - [x] I have searched Superset docs and Slack and didn't find a solution to my problem. - [x] I have searched the GitHub issue tracker and didn't find a similar bug report. - [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
