cjj2010 commented on code in PR #4774:
URL: https://github.com/apache/calcite/pull/4774#discussion_r2762801721


##########
mongodb/src/main/java/org/apache/calcite/adapter/mongodb/MongoProject.java:
##########
@@ -76,7 +76,9 @@ public MongoProject(RelOptCluster cluster, RelTraitSet 
traitSet,
             MongoRules.mongoFieldNames(getInput().getRowType()));
     final List<String> items = new ArrayList<>();
     for (Pair<RexNode, String> pair : getNamedProjects()) {
-      final String name = pair.right;
+      final String name = pair.right.startsWith("$f")
+          ? "_" + pair.right.substring(2)

Review Comment:
   > It seems there's no test result for this line of code.
   
   The testAggFunctionalMinFilter case is designed to verify the result of this 
line. Originally, the project was "$f0", but now the result is "_0"



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