gr4ve commented on a change in pull request #1405: [CALCITE-2772] Support varargs UDF for scalar function URL: https://github.com/apache/calcite/pull/1405#discussion_r399000697
########## File path: core/src/test/java/org/apache/calcite/test/UdfTest.java ########## @@ -198,6 +235,19 @@ assertThat(after, is(before + 4)); } + @Test public void testUserDefinedFunctionWithArgumentAssignment() throws Exception { + final String sql = "select \"adhoc\".my_plus(x=>\"deptno\", y=>100) as p\n" + + "from \"adhoc\".EMPLOYEES"; + final AtomicInteger c = Smalls.MyPlusFunction.INSTANCE_COUNT.get(); + final int before = c.get(); + withUdf().query(sql).returnsUnordered("P=110", + "P=120", + "P=110", Review comment: I have added more test cases for this PR. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services