Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suxiaogang223 committed Feb 7, 2025
1 parent 1a5ddb1 commit 2cdc9e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/vec/exec/scan/vfile_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Status VFileScanner::_process_runtime_filters_partition_pruning(bool& can_filter
// 2. Fill _runtime_filter_partition_pruning_block from the partition column, then execute conjuncts and filter block.
// 2.1 Fill _runtime_filter_partition_pruning_block from the partition column to match the conjuncts executing.
size_t index = 0;
bool first_cloumn_filled = false;
bool first_column_filled = false;
for (auto const* slot_desc : _real_tuple_desc->slots()) {
if (!slot_desc->need_materialize()) {
// should be ignored from reading
Expand All @@ -274,14 +274,14 @@ Status VFileScanner::_process_runtime_filters_partition_pruning(bool& can_filter
slot_desc->col_name()));
}
if (index == 0) {
first_cloumn_filled = true;
first_column_filled = true;
}
}
index++;
}

// 2.2 Execute conjuncts.
if (!first_cloumn_filled) {
if (!first_column_filled) {
// VExprContext.execute has an optimization, the filtering is executed when block->rows() > 0
// The following process may be tricky and time-consuming, but we have no other way.
_runtime_filter_partition_pruning_block.get_by_position(0).column->assume_mutable()->resize(
Expand Down

0 comments on commit 2cdc9e8

Please sign in to comment.