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


##########
mongodb/src/test/java/org/apache/calcite/adapter/mongodb/MongoAdapterTest.java:
##########
@@ -1001,4 +1001,18 @@ private static Consumer<List> mongoChecker(final 
String... expected) {
                 "{$sort: {CITY: 1}}"))
         .returnsOrdered("");
   }
+
+  /** Test case for
+   * <a 
href="https://issues.apache.org/jira/browse/CALCITE-7404";>[CALCITE-7404]
+   * Incorrect Field Alias in MongoDB project Stage</a>. */
+  @Test void testAggFunctionMinFilter() {
+    assertModel(MODEL)
+        .query("select min(pop>5000) as pop_result from zips")

Review Comment:
   I tested it, and aliases don't support nesting, so this issue can be 
ignored. 
   I think can also add some general tests, such as those that don't include 
aggregate functions, like ```select pop as popp from zips```.



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