-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Bug][SqlTask] Set maxRows in SqlTask #15342
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15342 +/- ##
=========================================
Coverage 37.80% 37.81%
Complexity 4701 4701
=========================================
Files 1304 1304
Lines 45221 45216 -5
Branches 4859 4858 -1
=========================================
+ Hits 17098 17099 +1
+ Misses 26260 26254 -6
Partials 1863 1863 ☔ View full report in Codecov by Sentry. |
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.
Besides making the limit
take effect, I think probably we still need to add some limits by default for something like select *
. If users do not add limit
explicitly, it seems they still could make worker OOM.
But I test works well locally |
@qingwli It could happen. The network of |
We will use default number |
Got it |
(cherry picked from commit b6b88e3e62d8245e08408fb60c48d23c0bd0bb46)
09bf728
to
6e90816
Compare
Please retry analysis of this Pull-Request directly on SonarCloud |
Purpose of the pull request
I find when we select from a large table, the limit configuration in the ui will not be used, this will cause the worker oom.
Once the result count is larger than limit, it will not be used, so we don't need to fetch all records.
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md