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

Method testCommaSeparatedString3

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

Source from the content-addressed store, hash-verified

193 }
194
195 @SuppressWarnings("unchecked")
196 @Test
197 public void testCommaSeparatedString3() throws Exception {
198 PigServer pig = servers[0];
199 pc = pig.getPigContext();
200 boolean noConversionExpected = true;
201 checkLoadPath("hdfs:"+ WORKING_DIR + "/test,hdfs:" + WORKING_DIR + "/test2,hdfs:" + WORKING_DIR + "/test3",
202 "hdfs:" + WORKING_DIR + "/test,hdfs:" + WORKING_DIR + "/test2,hdfs:" + WORKING_DIR + "/test3", noConversionExpected );
203
204 // check if a location 'hdfs:<abs path>,hdfs:<abs path>' can actually be
205 // read using PigStorage
206 String[] inputFileNames = new String[] {
207 WORKING_DIR + "/TestLoad-testCommaSeparatedString3-input1.txt",
208 WORKING_DIR + "/TestLoad-testCommaSeparatedString3-input2.txt"};
209 String inputString = "hdfs:" + inputFileNames[0] + ",hdfs:" +
210 inputFileNames[1];
211 testLoadingMultipleFiles(inputFileNames, inputString);
212
213 }
214
215 @Test
216 public void testCommaSeparatedString4() throws Exception {

Callers

nothing calls this directly

Calls 3

getPigContextMethod · 0.95
checkLoadPathMethod · 0.95

Tested by

no test coverage detected