EmmyMiao87 edited a comment on issue #6066:
URL: 
https://github.com/apache/incubator-doris/issues/6066#issuecomment-866761688


   > 多表join下聚合优化的判断可以简化为对各个olap_scan_node的判断。
   
   其实 colocate 的本质在于,当前 fragment 的分布方式和 group by 的分组方式相同或小于。
   所以只要能精确的判断 fragment 的分布方式,就能正确的判断是否能进行colocate。
   
   确实可以简化为直接判断 olap scan node。但这种判断会缩小 colocate 的范围。
   因为当 fragment 中并不包含 olap scan node 的时候其实也有可能可以 colocate agg。
   如果简单的看olap scan node 的数据分布,一些可以被 colocate 的聚合就会被误判成不能。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to