tuichenchuxin commented on code in PR #4256:
URL: https://github.com/apache/calcite/pull/4256#discussion_r2011146609
##########
mongodb/src/test/java/org/apache/calcite/adapter/mongodb/MongoAdapterTest.java:
##########
@@ -859,4 +859,32 @@ private static Consumer<List> mongoChecker(final String...
expected) {
.limit(2)
.returns("STATE=VT; AVG(pop)=26408\nSTATE=AK; AVG(pop)=26856\n");
}
+
+ /** Test case for
+ * <a
href="https://issues.apache.org/jira/browse/CALCITE-2109">[CALCITE-2109]
+ * Mongo adapter: unable to translate (A AND B) conditional case</a>. */
+ @Test void testTranslateAndInCondition() {
+ assertModel(MODEL)
+ .query("select state, city from zips "
+ + "where city='LEWISTON' and state in ('ME', 'VT') "
Review Comment:
@NobiGo sure, done.
--
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]