xuzifu666 commented on code in PR #5386:
URL: https://github.com/apache/calcite/pull/5386#discussion_r4481504920
##########
core/src/test/java/org/apache/calcite/test/UdfTest.java:
##########
@@ -666,6 +679,58 @@ private CalciteAssert.AssertThat withUdf() {
.returns("EXPR$0={a: 1, b: null, c: 3, d: null, e: null}\n");
}
+ /** Test case for
+ * <a
href="https://issues.apache.org/jira/browse/CALCITE-6018">[CALCITE-6018]
+ * Support nullable parameters in UDFs</a>.
+ *
+ * <p>Tests that {@code @Parameter(nullable = false)} makes a reference type
+ * parameter non-nullable. */
+ @Test void testNonNullParameter() throws Exception {
Review Comment:
Done. I added a test which asserting the NULL result.
--
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]