[improve](function) get result from constant_col when expr is const (#29403)
This commit is contained in:
@ -95,6 +95,9 @@ void VCaseExpr::close(VExprContext* context, FunctionContext::FunctionStateScope
|
||||
}
|
||||
|
||||
Status VCaseExpr::execute(VExprContext* context, Block* block, int* result_column_id) {
|
||||
if (is_const_and_have_executed()) { // const have execute in open function
|
||||
return get_result_from_const(block, _expr_name, result_column_id);
|
||||
}
|
||||
ColumnNumbers arguments(_children.size());
|
||||
for (int i = 0; i < _children.size(); i++) {
|
||||
int column_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user