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

ValidationMatcher in FlinkSqlParserImplTest fails to test negative tests

    XMLWordPrintableJSON

Details

    Description

      In ValidationMatcher we use failMsg to test exception. However the sql can be validated successfully without throwing a exception and #matches method returns true finally.

       

      Take #testInsertWithInvalidPartitionColumns as an example, you can succeed this tests even though you create a wrong failMsg.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wind_ljy Jiayi Liao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: