MCPcopy Create free account
hub / github.com/apache/pig / testNonDfsLocation

Method testNonDfsLocation

test/org/apache/pig/test/TestLoad.java:251–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 }
250
251 @Test
252 public void testNonDfsLocation() throws Exception {
253 String nonDfsUrl = "har:///user/foo/f.har";
254 String query = "a = load '" + nonDfsUrl + "' using PigStorage('\t','-noschema');" +
255 "store a into 'pigoutput';";
256 LogicalPlan lp = Util.buildLp(servers[1], query);
257 LOLoad load = (LOLoad) lp.getSources().get(0);
258 nonDfsUrl = nonDfsUrl.replaceFirst("/$", "");
259 assertEquals(nonDfsUrl, load.getFileSpec().getFileName());
260 }
261
262 @SuppressWarnings("unchecked")
263 private void testLoadingMultipleFiles(String[] inputFileNames,

Callers

nothing calls this directly

Calls 6

buildLpMethod · 0.95
getFileSpecMethod · 0.95
getMethod · 0.65
getSourcesMethod · 0.65
assertEqualsMethod · 0.45
getFileNameMethod · 0.45

Tested by

no test coverage detected