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

Use a builder pattern for creating CsvTableSource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • Table SQL / API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: