[Refactor](function) opt the exec of function with null column (#16256)

This commit is contained in:
HappenLee
2023-02-01 15:56:31 +08:00
committed by GitHub
parent ca73c60442
commit aaae1497cd
5 changed files with 85 additions and 89 deletions

View File

@ -41,6 +41,8 @@ doris::Status VectorizedFnCall::prepare(doris::RuntimeState* state,
argument_template.reserve(_children.size());
std::vector<std::string_view> child_expr_name;
for (auto child : _children) {
// TODO: rethink we really create column here. maybe only need nullptr just to
// get the function
auto column = child->data_type()->create_column();
argument_template.emplace_back(std::move(column), child->data_type(), child->expr_name());
child_expr_name.emplace_back(child->expr_name());