Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6.4, 1.7.2, 1.8.0
Description
method:
protected void testProgram() throws Exception { internalRun(true); postSubmit(); resultPath = getTempDirPath("result2"); internalRun(false); postSubmit(); }
Previously, in order to test deprecated API, the following code snippet existed:
if (isTestDeprecatedAPI) { input = env.createInput(HadoopInputs.readHadoopFile(new TextInputFormat(), LongWritable.class, Text.class, textPath)); } else { input = env.createInput(readHadoopFile(new TextInputFormat(), LongWritable.class, Text.class, textPath)); }
But now, the related APIs have been removed from the DataSet, so the code needs to be refactored to make it clearer.
Attachments
Issue Links
- links to