using same assign exprs in join first rewrite for update stmt
This commit is contained in:
		| @ -398,7 +398,9 @@ int ObRawExpr::deduce_type(const ObSQLSessionInfo *session_info, | |||||||
|   ObRawExprDeduceType expr_deducer(session_info, solidify_session_vars, local_vars, local_var_id); |   ObRawExprDeduceType expr_deducer(session_info, solidify_session_vars, local_vars, local_var_id); | ||||||
|   expr_deducer.set_expr_factory(expr_factory_); |   expr_deducer.set_expr_factory(expr_factory_); | ||||||
|   if (OB_FAIL(expr_deducer.deduce(*this))) { |   if (OB_FAIL(expr_deducer.deduce(*this))) { | ||||||
|     if (session_info->is_varparams_sql_prepare()) { |     if (session_info->is_varparams_sql_prepare() && | ||||||
|  |         OB_ERR_INVALID_COLUMN_NUM != ret && | ||||||
|  |         OB_ERR_TOO_MANY_VALUES != ret) { | ||||||
|       ret = OB_SUCCESS; |       ret = OB_SUCCESS; | ||||||
|       LOG_TRACE("ps prepare phase ignores type deduce error"); |       LOG_TRACE("ps prepare phase ignores type deduce error"); | ||||||
|     } else { |     } else { | ||||||
|  | |||||||
| @ -1301,8 +1301,8 @@ int ObTransformAggrSubquery::get_trans_param(ObDMLStmt &stmt, | |||||||
|     } |     } | ||||||
|   } else if (stmt.is_update_stmt()) { |   } else if (stmt.is_update_stmt()) { | ||||||
|     ObUpdateStmt &upd_stmt = static_cast<ObUpdateStmt &>(stmt); |     ObUpdateStmt &upd_stmt = static_cast<ObUpdateStmt &>(stmt); | ||||||
|     if (OB_FAIL(upd_stmt.get_assign_values(pre_group_by_exprs, true))) { |     if (OB_FAIL(ObTransformUtils::get_post_join_exprs(&stmt, pre_group_by_exprs, true))) { | ||||||
|       LOG_WARN("failed to get assign values", K(ret)); |       LOG_WARN("failed to get post join exprs", K(ret)); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   int64_t pre_count = pre_group_by_exprs.count(); |   int64_t pre_count = pre_group_by_exprs.count(); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 jingtaoye35
					jingtaoye35