Myracle commented on code in PR #20361:
URL: https://github.com/apache/flink/pull/20361#discussion_r937678126
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/runtime/batch/sql/FunctionITCase.java:
##########
@@ -142,6 +147,23 @@ public void
testUserDefinedTemporaryCatalogFunctionByUsingJar() throws Exception
testUserDefinedFunctionByUsingJar(functionDDL, dropFunctionDDL);
}
+ @Test
+ public void testUsingAddJar() throws Exception {
+ tEnv().executeSql(String.format("ADD JAR '%s'", jarPath));
+
+ TableResult tableResult = tEnv().executeSql("SHOW JARS");
+ assertThat(
+ CollectionUtil.iteratorToList(tableResult.collect())
+ .equals(
+ Collections.singletonList(
+ Row.of(new
Path(jarPath).getPath()))))
+ .isTrue();
+
+ testUserDefinedFunctionByUsingJar(
+ String.format("create function lowerUdf as '%s' LANGUAGE
JAVA", udfClassName),
+ null);
Review Comment:
Using this function to verify the execute 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]