Skip to content

Commit

Permalink
fix wrong logic
Browse files Browse the repository at this point in the history
Co-authored-by: Mingyu Chen (Rayner) <[email protected]>
  • Loading branch information
suxiaogang223 and morningman authored Nov 28, 2024
1 parent 91c17ee commit 3df89ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/exec/format/orc/vorc_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ bool OrcReader::_check_slot_can_push_down(const VExprSPtr& expr) {
}
const auto* slot_ref = static_cast<const VSlotRef*>(expr->children()[0].get());
// check if the slot exists in orc file and not partition column
if (!_col_name_to_file_col_name.contains(slot_ref->expr_name()) &&
if (!_col_name_to_file_col_name.contains(slot_ref->expr_name()) ||
_lazy_read_ctx.predicate_partition_columns.contains(slot_ref->expr_name())) {
return false;
}
Expand Down

0 comments on commit 3df89ac

Please sign in to comment.