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 02c162ac002 [fix](orc) be crash while read orc with mismatch types 
#30738 (#30747)
02c162ac002 is described below

commit 02c162ac00212942dcb87fb252a547b72bdff3e6
Author: camby <[email protected]>
AuthorDate: Sat Feb 3 23:54:15 2024 +0800

    [fix](orc) be crash while read orc with mismatch types #30738 (#30747)
---
 be/src/vec/exec/format/orc/vorc_reader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/exec/format/orc/vorc_reader.cpp 
b/be/src/vec/exec/format/orc/vorc_reader.cpp
index fc1d5e17b30..55cb903e8c0 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -1048,7 +1048,7 @@ Status OrcReader::_decode_string_column(const 
std::string& col_name,
                                         const orc::TypeKind& type_kind, 
orc::ColumnVectorBatch* cvb,
                                         size_t num_values) {
     SCOPED_RAW_TIMER(&_statistics.decode_value_time);
-    auto* data = down_cast<orc::EncodedStringVectorBatch*>(cvb);
+    auto* data = dynamic_cast<orc::EncodedStringVectorBatch*>(cvb);
     if (data == nullptr) {
         return Status::InternalError("Wrong data type for colum '{}'", 
col_name);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to