Search in sources :

Example 1 with AddJarOperation

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);
    });
}
Also used : AddJarOperation(org.apache.flink.table.operations.command.AddJarOperation) Test(org.junit.Test)

Aggregations

AddJarOperation (org.apache.flink.table.operations.command.AddJarOperation)1 Test (org.junit.Test)1