AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode contains distinct aggregate function.
|a (String)||b (int)|
For the following sql,
Aggregate would generate following node tree, which is inequivalent with original node tree.
Based on the converted plan, result is 4; while the correct answer is 2.