-
Bug
-
Resolution: Done
-
Blocker
-
9.0.3
-
None
Aggregation is performed incorrectly for JOIN queries, like this
select count(v2.b) from views.v1 right join views.v2 on true group by v1.b; select count(v2.b) from views.v1 join (call procs.pr()) v2 on true group by v1.b; select count(v2.b) from views.v1 left join (call procs.pr()) v2 on true group by v1.b; select count(v2.b) from views.v1 right join (call procs.pr()) v2 on true group by v1.b;
showing as a result:
1 1 1
though these ones work correctly:
select count(v2.b) from views.v1 join views.v2 on true group by v1.b; select count(v2.b) from views.v1 left join views.v2 on true group by v1.b;
showing
1 1 2