use of io.crate.execution.dsl.phases.FileUriCollectPhase in project crate by crate.
the class CopyFromPlannerTest method testCopyFromPlan.
@Test
public void testCopyFromPlan() {
Collect plan = plan("copy users from '/path/to/file.extension'");
assertThat(plan.collectPhase(), instanceOf(FileUriCollectPhase.class));
FileUriCollectPhase collectPhase = (FileUriCollectPhase) plan.collectPhase();
assertThat(((Literal) collectPhase.targetUri()).value(), is("/path/to/file.extension"));
}
Aggregations