Skip to content

Commit

Permalink
[opt](hive)opt select count(*) stmt push down agg on hive
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Jul 25, 2023
1 parent 06c68c9 commit 679102a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion be/src/vec/exec/format/orc/vorc_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ Status OrcReader::get_next_block(Block* block, size_t* read_rows, bool* eof) {
if (get_remaining_rows() == 0) {
*eof = true;
}
*read_rows = rows;
return Status::OK();
}

Expand Down
4 changes: 4 additions & 0 deletions be/src/vec/exec/scan/vscan_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ Status VScanNode::init(const TPlanNode& tnode, RuntimeState* state) {
_max_pushdown_conditions_per_column = config::max_pushdown_conditions_per_column;
}

// tnode.olap_scan_node.push_down_agg_type_opt field is deprecated
// Introduced a new field : tnode.push_down_agg_type_opt
//
// make it compatible here
if (tnode.__isset.push_down_agg_type_opt) {
_push_down_agg_type = tnode.push_down_agg_type_opt;
} else if (tnode.olap_scan_node.__isset.push_down_agg_type_opt) {
Expand Down

0 comments on commit 679102a

Please sign in to comment.