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

Refactor SqlClient for better testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Table SQL / Client

    Description

      Currently, we added a JUnit Rule TerminalStreamsResource to replace System.in and System.out stream to get the output of SqlClient. However, this is not safe, especially used by multiple tests.

      We should refactor SqlClient to expose a new testing purpose main method which can pass in custom InputStream and OutputStream.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jark Jark Wu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: