repo.delete("ns", "test");
}
@Test
public void testExternalRelative() {
DatasetRepository repo = DatasetRepositories.repositoryFor("repo:hive:data");
repo.delete("ns", "test");
repo.create("ns", "test", descriptor);
Dataset<GenericRecord> ds = Datasets.load("dataset:hive:data/ns/test");
Assert.assertNotNull("Should load dataset", ds);
Assert.assertTrue(ds instanceof FileSystemDataset);
Path cwd = getDFS().makeQualified(new Path("."));
Assert.assertEquals("Locations should match",
new Path(cwd, "data/ns/test").toUri(), ds.getDescriptor().getLocation());
Assert.assertEquals("Descriptors should match",
repo.load("ns", "test").getDescriptor(), ds.getDescriptor());
repo.delete("ns", "test");
}