You need to sign in or sign up before continuing.
提交 9a79be65 编写于 作者: M Monk-Liu 提交者: wangzelin.wzl

[bugfix]: support const_aggr in subquery(fix the bug in regression);

上级 9f436710
...@@ -234,10 +234,6 @@ int32_t ObAggrExprPushUpAnalyzer::get_final_aggr_level() const ...@@ -234,10 +234,6 @@ int32_t ObAggrExprPushUpAnalyzer::get_final_aggr_level() const
final_aggr_level = column_level; final_aggr_level = column_level;
} }
} }
if (final_aggr_level < 0) {
// count(const_expr)
final_aggr_level = cur_aggr_level;
}
// in mysql mode if the final_aggr_level < 0, the aggr's params are const. e.g., count(const_expr); // in mysql mode if the final_aggr_level < 0, the aggr's params are const. e.g., count(const_expr);
return final_aggr_level; return final_aggr_level;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册