[ 
https://issues.apache.org/jira/browse/FLINK-10218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Lin updated FLINK-10218:
-----------------------------
    Description: 
Currently, DataSet API has two overloaded `write` methods for using 
FileOutputFormat as output format, and both require a path parameter, but the 
output path could already be set in the FileOutputFormat object. What's more, 
the subclasses of FileOutputFormat mostly don't have default constructors and 
required a path parameter too, so users have to set output path twice in the 
code, like:
{code:java}
  String output = "hdfs:///tmp/";
  dataset.write(new TextOutputFormat<>(new Path(output)), output);
{code}
So I propose to add another write helper method that requires no path 
parameter. May someone assign this issue to me?

  was:
Currently, DataSet API has two overloaded write methods for using 
FileOutputFormat as output format, and both require a path parameter, but the 
output path could already be set in the FileOutputFormat object. What's more, 
the subclasses of FileOutputFormat mostly don't have default constructors and 
required a path parameter too, so users have to set output path twice in the 
code, like:
{code:java}
  String output = "hdfs:///tmp/";
  dataset.write(new TextOutputFormat<>(new Path(output)), output);
{code}
So I propose to add another write method that requires no path parameter. May 
someone assign this issue to me?

        Summary: Allow writing DataSet without explicit path parameter  (was: 
Allow write DataSet without path parameter)

> Allow writing DataSet without explicit path parameter
> -----------------------------------------------------
>
>                 Key: FLINK-10218
>                 URL: https://issues.apache.org/jira/browse/FLINK-10218
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataSet API
>    Affects Versions: 1.6.0
>            Reporter: Paul Lin
>            Priority: Minor
>
> Currently, DataSet API has two overloaded `write` methods for using 
> FileOutputFormat as output format, and both require a path parameter, but the 
> output path could already be set in the FileOutputFormat object. What's more, 
> the subclasses of FileOutputFormat mostly don't have default constructors and 
> required a path parameter too, so users have to set output path twice in the 
> code, like:
> {code:java}
>   String output = "hdfs:///tmp/";
>   dataset.write(new TextOutputFormat<>(new Path(output)), output);
> {code}
> So I propose to add another write helper method that requires no path 
> parameter. May someone assign this issue to me?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to