FANNG1 commented on code in PR #9580:
URL: https://github.com/apache/gravitino/pull/9580#discussion_r2781843819
##########
spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/SparkCommonIT.java:
##########
@@ -196,6 +200,25 @@ void testListTables() {
NoSuchNamespaceException.class, () -> sql("SHOW TABLES IN
nonexistent_schema"));
}
+ @Test
+ void testCallUDF() {
+ // test call function
+ List<String> data =
+ getQueryData(String.format("SELECT %s.%s('abc')", functionSchemaName,
functionName));
+ Assertions.assertEquals(1, data.size());
+ Assertions.assertEquals("3", data.get(0));
+ }
+
+ @Test
+ @EnabledIf("supportsListFunctions")
+ void testListFunctions() {
+ // test list functions
+ Set<String> functionNames = listUserFunctions(functionSchemaName);
Review Comment:
For Iceberg, could you test whether the Iceberg function is listed out
--
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]