xuzifu666 commented on code in PR #4774:
URL: https://github.com/apache/calcite/pull/4774#discussion_r2740318256
##########
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:
Could you add more tests? For example, nested aliases, such as ```(a as b)
as c```.
--
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]