Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-1486

Add a string to the print method to identify output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • None
    • 0.9
    • Runtime / Task

    Description

      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).

      DataSet data = env.fromElements(1,2,3,4,5);
      

      For example, data.print("MyDataSet: ") would output print

      MyDataSet: 1
      MyDataSet: 2
      ...
      

      Attachments

        Issue Links

          Activity

            People

              mxm Maximilian Michels
              mxm Maximilian Michels
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: