You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/09/12 03:11:02 UTC
[GitHub] [calcite] cuglifangzheng commented on a change in pull request #2121: [CALCITE-4192] RelMdColumnOrigins should obtain the true column index of the group by column of the aggregation operator instead of passing through directly
cuglifangzheng commented on a change in pull request #2121:
URL: https://github.com/apache/calcite/pull/2121#discussion_r487359768
##########
File path: core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
##########
@@ -6764,4 +6769,25 @@ protected MyProjectRule(Config config) {
.checkUnchanged();
}
+ /** Test case for
+ * <a href="https://issues.apache.org/jira/browse/CALCITE-4192">[CALCITE-4192]
+ * fix aggregate column origins searching by RelMdColumnOrigins</a>. */
+ @Test void testColumnOriginAfterAggProjectMergeRule() {
+ final String sql = "select count(ename), SAL from emp group by SAL";
Review comment:
thanks, good idea!
----------------------------------------------------------------
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:
users@infra.apache.org