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

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

commit ec05f68cb1bab0f8b56312ec9c6d3001343d1c35
Author: morningman <[email protected]>
AuthorDate: Sat Feb 15 11:19:13 2025 +0800

    Revert "[branch-2.1](ORC) fix predicate filter failed when use hive 1.x 
version (#45809)"
    
    This reverts commit c94ac6c9f86e47a7de02e36528d3aefa77b0524d.
---
 be/src/vec/exec/format/orc/vorc_reader.cpp | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/be/src/vec/exec/format/orc/vorc_reader.cpp 
b/be/src/vec/exec/format/orc/vorc_reader.cpp
index a98e88c4173..996effd554e 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -724,19 +724,6 @@ bool OrcReader::_init_search_argument(
     if (predicates.empty()) {
         return false;
     }
-
-    if (_is_hive1_orc_or_use_idx) {
-        // use hive 1.x version orc file, need to convert column name to 
internal column name
-        for (OrcPredicate& it : predicates) {
-            it.col_name = _col_name_to_file_col_name[it.col_name];
-        }
-    }
-
-    // check if all column names in predicates are same as orc file
-    DCHECK(std::all_of(predicates.begin(), predicates.end(), [&](const 
OrcPredicate& predicate) {
-        return type_map.contains(predicate.col_name);
-    }));
-
     std::unique_ptr<orc::SearchArgumentBuilder> builder = 
orc::SearchArgumentFactory::newBuilder();
     if (build_search_argument(predicates, 0, builder)) {
         std::unique_ptr<orc::SearchArgument> sargs = builder->build();


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

Reply via email to