[Fix](status) fix unhandled status in exprs #28218

which marked static_cast<void> in https://github.com/apache/doris/pull/23395/files
partially fixed #28160
This commit is contained in:
zclllyybb
2023-12-11 11:04:58 +08:00
committed by GitHub
parent 53802fe0da
commit e1587537bc
21 changed files with 112 additions and 131 deletions

View File

@ -356,10 +356,7 @@ Block* process_table_function(TableFunction* fn, Block* input_block,
// process table function for all rows
for (size_t row = 0; row < input_block->rows(); ++row) {
if (fn->process_row(row) != Status::OK()) {
LOG(WARNING) << "TableFunction process_row failed";
return nullptr;
}
fn->process_row(row);
// consider outer
if (!fn->is_outer() && fn->current_empty()) {
@ -368,7 +365,7 @@ Block* process_table_function(TableFunction* fn, Block* input_block,
do {
fn->get_value(column);
static_cast<void>(fn->forward());
fn->forward();
} while (!fn->eos());
}