Fix print window function bug

This commit is contained in:
xianyu-w
2023-04-04 00:44:54 +00:00
committed by ob-robot
parent 2c86db0c46
commit f6c64ffeb2
3 changed files with 14 additions and 81 deletions

View File

@ -5029,7 +5029,6 @@ int ObWindow::assign(const ObWindow &other)
void ObWinFunRawExpr::clear_child()
{
func_type_ = T_MAX;
is_distinct_ = false;
func_params_.reset();
partition_exprs_.reset();
order_items_.reset();
@ -5058,7 +5057,6 @@ int ObWinFunRawExpr::assign(const ObRawExpr &other)
LOG_WARN("failed to assign lower bound", K(ret));
} else {
func_type_ = tmp.func_type_;
is_distinct_ = tmp.is_distinct_;
is_ignore_null_ = tmp.is_ignore_null_;
is_from_first_ = tmp.is_from_first_;
agg_expr_ = tmp.agg_expr_;