Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](Planner) fix multi phase analysis failed in multi instance envi…
…ronment substitution (#22840) Problem: When executing group_concat with order by inside in view, column can not be found when analyze. Example: create view if not exists test_view as select group_concat(c1,',' order by c1 asc) from table_group_concat; select * from test_view; it will return an error like: "can not find c1 in table_list" Reason: When we executing this sql in multi-instance environment, Planner would try to create plan in multi phase aggregation. And because we analyze test_view independent with tables outside view. So we can not get table informations inside view. Solution: Substitute order by expression of merge aggregation expressions.
- Loading branch information