tanclary commented on code in PR #3720: URL: https://github.com/apache/calcite/pull/3720#discussion_r1518338635
########## testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java: ########## @@ -6307,6 +6307,22 @@ void checkRegexpExtract(SqlOperatorFixture f0, FunctionAlias functionAlias) { } } + /** Test case for + * <a href="https://issues.apache.org/jira/browse/CALCITE-6314">[CALCITE-6314] + * Add RANDOM function (enabled in Postgres library)</a>. */ + @Test void testRandomFunc() { + final SqlOperatorFixture f = fixture(); + f.setFor(SqlLibraryOperators.RANDOM, VmName.EXPAND); + f.checkFails("^random^", "Column 'RANDOM' not found in any table", false); + Consumer<SqlOperatorFixture> test = fixture -> { Review Comment: sorry this looks good but can we just call this `consumer` to fit the pattern of other tests? `test` doesn't tell us much -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org