Fix wrong result on aggregate with distinct (#9962)
The codes of multi phase aggregate add subqueryscan below the final aggregate plan node. But we do not create a new root. So when we create new path keys on sort node, wrong equivalent classes were find out from the wrong list. Now we just make a new root with empty equivalent class list when the path keys were created. It is a little hack.
Showing
想要评论请 注册 或 登录