fix win expr order incorrect cause result error

This commit is contained in:
ChangerR
2023-05-26 12:46:32 +00:00
committed by ob-robot
parent 530bdbcf48
commit 397fc12ff2
5 changed files with 28 additions and 1 deletions

View File

@ -5883,6 +5883,7 @@ int ObSelectLogPlan::adjust_window_functions(const ObLogicalOperator *top,
if (OB_FAIL(ObOptimizerUtil::get_non_const_expr_size(winfunc_exprs.at(i)->get_partition_exprs(),
equal_sets,
top->get_output_const_exprs(),
get_onetime_query_refs(),
non_const_exprs))) {
LOG_WARN("failed to get non const expr size", K(ret));
} else if (OB_FAIL(expr_entries.push_back(std::pair<int64_t, int64_t>(-non_const_exprs, i)))) {