You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/04/14 13:56:42 UTC

[incubator-doris] 07/07: [fix](load) fix bug of infinite loop in orc scanner (#9007)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 20dd0201f8e1b2b22eb76c95d176c17fe7d5c120
Author: Mingyu Chen <mo...@gmail.com>
AuthorDate: Thu Apr 14 11:46:48 2022 +0800

    [fix](load) fix bug of infinite loop in orc scanner (#9007)
    
    When encounter unqualified data, orc scanner may not be able
    to quit correctly.
---
 be/src/exec/orc_scanner.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/be/src/exec/orc_scanner.cpp b/be/src/exec/orc_scanner.cpp
index 25031c3016..0c69945271 100644
--- a/be/src/exec/orc_scanner.cpp
+++ b/be/src/exec/orc_scanner.cpp
@@ -361,6 +361,11 @@ Status ORCScanner::get_next(Tuple* tuple, MemPool* tuple_pool, bool* eof, bool*
             *fill_tuple = _success;
             break;
         }
+        if (_scanner_eof) {
+            *eof = true;
+        } else {
+            *eof = false;
+        }
         return Status::OK();
     } catch (orc::ParseError& e) {
         std::stringstream str_error;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org