cuglifangzheng commented on a change in pull request #2121:
URL: https://github.com/apache/calcite/pull/2121#discussion_r478162865
##########
File path:
core/src/main/java/org/apache/calcite/rel/metadata/RelMdColumnOrigins.java
##########
@@ -65,8 +65,8 @@ private RelMdColumnOrigins() {}
public Set<RelColumnOrigin> getColumnOrigins(Aggregate rel,
RelMetadataQuery mq, int iOutputColumn) {
if (iOutputColumn < rel.getGroupCount()) {
- // Group columns pass through directly.
- return mq.getColumnOrigins(rel.getInput(), iOutputColumn);
+ // get actual index of Group columns.
+ return mq.getColumnOrigins(rel.getInput(),
rel.getGroupSet().asList().get(iOutputColumn));
Review comment:
thank you, I will try it.
----------------------------------------------------------------
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:
[email protected]