use of org.apache.flink.table.operations.command.AddJarOperation in project flink by apache.
the class SqlToOperationConverterTest method testAddJar.
@Test
public void testAddJar() {
Arrays.asList("./test.\njar", "file:///path/to/whatever", "../test-jar.jar", "/root/test.jar", "test\\ jar.jar", "oss://path/helloworld.go").forEach(jarPath -> {
AddJarOperation operation = (AddJarOperation) parser.parse(String.format("ADD JAR '%s'", jarPath)).get(0);
assertThat(operation.getPath()).isEqualTo(jarPath);
});
}
Aggregations