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

Improve Expression validation test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Not a Priority
    • Resolution: Unresolved
    • None
    • None
    • Table SQL / Planner
    • None

    Description

      Currently, the expression validation tests under org.apache.flink.table.expressions.validation are using following pattern to verify an exception should be thrown:

      @Test
        def testWrongKeyType(): Unit = {
          testAllApis('f2.at(12), "f2.at(12)", "f2[12]", "FAIL")
        }
      

      However, this only covers the first expression 'f2.at(12) throw the expected exception. All the other expression will be ignored. We should improve this. And it's nice to test the expected exception message too.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: