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

Use a builder pattern for creating CsvTableSource

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Table API & SQL
    • Labels:
      None

      Description

      Right now, the constructor of the CsvTableSource can have up to 9 parameters. In Scala this might not be a problem because of default values, but Java doesn't have this functionality.

      I propose to have a builder pattern here:

      CsvTableSource
      .builder()
      .field("myfield", Types.STRING)
      .field("myfield2", Types.INT)
      .quoteCharacter(';')
      .build()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jark Jark Wu
                Reporter:
                twalthr Timo Walther
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: