You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (JIRA)" <ji...@apache.org> on 2019/02/19 08:49:00 UTC
[jira] [Commented] (FLINK-11656) Fix deprecated API compatibility
issue for WordCountMapredITCase
[ https://issues.apache.org/jira/browse/FLINK-11656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771724#comment-16771724 ]
vinoyang commented on FLINK-11656:
----------------------------------
[~fhueske@gmail.com] Do you agree with this issue?
> Fix deprecated API compatibility issue for WordCountMapredITCase
> ----------------------------------------------------------------
>
> Key: FLINK-11656
> URL: https://issues.apache.org/jira/browse/FLINK-11656
> Project: Flink
> Issue Type: Improvement
> Components: Batch Connectors and Input/Output Formats, Tests
> Reporter: vinoyang
> Assignee: vinoyang
> Priority: Minor
>
> method :
> {code:java}
> @Override
> protected void testProgram() throws Exception {
> internalRun(true);
> postSubmit();
> resultPath = getTempDirPath("result2");
> internalRun(false);
> postSubmit();
> }{code}
> Previously, in order to test the deprecated API, the following code snippet existed:
> {code:java}
> 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));
> }
> {code}
> But now, the related APIs have been removed from the DataSet, so the code needs to be refactored to make it clearer.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)