ritesh-kapoor commented on a change in pull request #1733: [CALCITE-3679] Allow
lambda expressions in SQL queries
URL: https://github.com/apache/calcite/pull/1733#discussion_r364041136
##########
File path:
core/src/test/java/org/apache/calcite/sql/test/SqlOperatorBaseTest.java
##########
@@ -4559,7 +4559,17 @@ private void checkNullOperand(SqlTester tester, String
op) {
});
}
- @Test public void testRegexpReplaceFunc() {
+ @Test
+ public void testLambda() {
+// tester.setFor(SqlStdOperatorTable.LAMBDA);
+ final SqlTester tester = tester(SqlLibrary.MYSQL);
+ tester.checkType("(a)->2+2*a", "LAMBDA NOT NULL");
+// tester.checkString("map_filter((a)->a*2+2)","4","VARCHAR(2000)");
+ tester.checkString("map_filter((a)->2+2*a)", "8", "INTEGER");
Review comment:
Was able to get map_filter(()->2+2) this working
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services