korlov42 commented on a change in pull request #2623:
URL: https://github.com/apache/calcite/pull/2623#discussion_r827154071



##########
File path: druid/src/main/java/org/apache/calcite/adapter/druid/DruidRules.java
##########
@@ -395,10 +396,11 @@ protected DruidProjectRule(DruidProjectRuleConfig config) 
{
         }
         builder.add(name, e.getType());
       }
-      final RelNode newProject = project.copy(project.getTraitSet(), input, 
below, builder.build());
+      final RelNode newProject = project.copy(project.getTraitSet(), input, 
below, builder.build(),
+          ImmutableSet.of());

Review comment:
       This rule actually splits the original project onto two. The project 
below (named `newProject` here) is an identity project that trim unused fields. 
Hence, it's safe to pass an empty set in that case.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to