This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 111aeea6e8 fix coredump when limit<0 and limit!=-1 with 1.2 fe (#22624)
111aeea6e8 is described below
commit 111aeea6e84926d077c8d05581916d29236935d2
Author: yiguolei <[email protected]>
AuthorDate: Fri Aug 4 19:11:58 2023 +0800
fix coredump when limit<0 and limit!=-1 with 1.2 fe (#22624)
Co-authored-by: BiteTheDDDDt <[email protected]>
---
be/src/vec/exec/scan/scanner_context.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/vec/exec/scan/scanner_context.cpp
b/be/src/vec/exec/scan/scanner_context.cpp
index 2e2b55a673..a8094faa81 100644
--- a/be/src/vec/exec/scan/scanner_context.cpp
+++ b/be/src/vec/exec/scan/scanner_context.cpp
@@ -62,6 +62,9 @@ ScannerContext::ScannerContext(doris::RuntimeState* state_,
doris::vectorized::V
if (_scanners.empty()) {
_is_finished = true;
}
+ if (limit < 0) {
+ limit = -1;
+ }
}
// After init function call, should not access _parent
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]