Skip to content

Commit 96cddae

Browse files
author
Dmitry Sysolyatin
committed
mongo bug
1 parent 61ee73e commit 96cddae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mongodb/src/test/java/org/apache/calcite/adapter/mongodb/MongoAdapterTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,12 @@ private static Consumer<List> mongoChecker(final String... expected) {
819819
};
820820
}
821821

822+
@Test void testCalciteFunc() {
823+
assertModel(MODEL)
824+
.query("select CHAR_LENGTH(state) from zips")
825+
.runs();
826+
}
827+
822828
@Test void testColumnQuoting() {
823829
assertModel(MODEL)
824830
.query("select state as \"STATE\", avg(pop) as \"AVG(pop)\" "

0 commit comments

Comments
 (0)