Search in sources :

Example 1 with RemoveJarOperation

use of org.apache.flink.table.operations.command.RemoveJarOperation in project flink by apache.

the class SqlToOperationConverterTest method testRemoveJar.

@Test
public void testRemoveJar() {
    Arrays.asList("./test.\njar", "file:///path/to/whatever", "../test-jar.jar", "/root/test.jar", "test\\ jar.jar", "oss://path/helloworld.go").forEach(jarPath -> {
        RemoveJarOperation operation = (RemoveJarOperation) parser.parse(String.format("REMOVE JAR '%s'", jarPath)).get(0);
        assertThat(operation.getPath()).isEqualTo(jarPath);
    });
}
Also used : RemoveJarOperation(org.apache.flink.table.operations.command.RemoveJarOperation) Test(org.junit.Test)

Aggregations

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