You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Jark Wu (JIRA)" <ji...@apache.org> on 2019/08/01 06:59:00 UTC

[jira] [Created] (FLINK-13525) Improve Expression validation test

Jark Wu created FLINK-13525:
-------------------------------

             Summary: Improve Expression validation test
                 Key: FLINK-13525
                 URL: https://issues.apache.org/jira/browse/FLINK-13525
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Planner
            Reporter: Jark Wu
             Fix For: 1.10.0


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


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


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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)