Skip to content

cocolate join在查询中带函数的情况下会失效 #5184

Closed
@hwwxg

Description

同一个表包含聚合函数的查询时,也必须要join,但是却不是cocolate join,总是报"colocate: false, reason: Node type not match",为什么会这样,能优化吗?
比如下列语句:
select count() from (select user_id from t_event where event_name = 'AppOpen' group by user_id having count() > 5) t1 where user_id in (select user_id from t_event where event_name = 'Buy' group by user_id having count() > 3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/colocatedIssues or PRs related to colocated tablesarea/optimizerIssues or PRS related to query optimizer or improvementarea/plannerIssues or PRs related to the query planner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions