You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Vasia Kalavri (JIRA)" <ji...@apache.org> on 2015/02/06 13:06:34 UTC

[jira] [Commented] (FLINK-1486) Add a string to the print method to identify output

    [ https://issues.apache.org/jira/browse/FLINK-1486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309043#comment-14309043 ] 

Vasia Kalavri commented on FLINK-1486:
--------------------------------------

+1, I've needed this feature many times! 
We implemented something similar for the graph api [here | http://github.com/project-flink/flink-graph/blob/master/src/main/java/flink/graphs/example/utils/ExampleUtils.java] (see method {{printResult}}).

> Add a string to the print method to identify output
> ---------------------------------------------------
>
>                 Key: FLINK-1486
>                 URL: https://issues.apache.org/jira/browse/FLINK-1486
>             Project: Flink
>          Issue Type: Improvement
>          Components: Local Runtime
>            Reporter: Max Michels
>            Priority: Minor
>              Labels: usability
>
> The output of the {{print}} method of {[DataSet}} is mainly used for debug purposes. Currently, it is difficult to identify the output.
> I would suggest to add another {{print(String str)}} method which allows the user to supply a String to identify the output. This could be a prefix before the actual output or a format string (which might be an overkill).
> {code}
> DataSet data = env.fromElements(1,2,3,4,5);
> {code}
> For example, {{data.print("MyDataSet: ")}} would output print
> {noformat}
> MyDataSet: 1
> MyDataSet: 2
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)