GitHub user KurtYoung opened a pull request: https://github.com/apache/flink/pull/3062
[FLINK-5144] Fix error while applying rule AggregateJoinTransposeRule There are two calcite's issues related. One is during calcite's decorrelation, there will be an assertion error: https://issues.apache.org/jira/browse/CALCITE-1543. Another one is about the AggregateJoinTransposeRule, looks like the rule has changed the output RowType unexpectedly: https://issues.apache.org/jira/browse/CALCITE-1544. I have fixed these two issues in calcite, but it won't be included util calcite 1.12.0. So i copied two related classes and do a early fix in flink's codes. You can merge this pull request into a Git repository by running: $ git pull https://github.com/KurtYoung/flink flink-5144 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3062.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3062 ---- commit a97246af69282e981f3247f5f83b0c54ded9043a Author: kete.yangkt <kete.yan...@alibaba-inc.com> Date: 2017-01-05T03:32:04Z [FLINK-5144] Fix error while applying rule AggregateJoinTransposeRule ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---