Skip to content

Commit

Permalink
[fix](orc) fix predicate filter failed when use hive 1.x version
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy12345zsq committed Nov 4, 2024
1 parent 7103dab commit 6f5bf4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions be/src/vec/exec/format/orc/vorc_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,12 @@ bool OrcReader::_init_search_argument(
if (predicates.empty()) {
return false;
}

if (_is_hive1_orc_or_use_idx) {
for (OrcPredicate & it : predicates)
it.col_name = _col_name_to_file_col_name[it.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();
Expand Down

0 comments on commit 6f5bf4b

Please sign in to comment.