Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30159

Fix the method calls of QueryTest.checkAnswer

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL, Tests
    • None

    Description

      Currently, the method `checkAnswer` in Object `QueryTest` returns an optional string. It doesn't throw exceptions when errors happen.
      The actual exceptions are thrown in the trait `QueryTest`.

      However, there are some test suites that use the no-op method `QueryTest.checkAnswer` and expect it to fail test cases when the input Dataframe doesn't match the expected answer. E.g. StreamSuite, SessionStateSuite, BinaryFileFormatSuite, etc.

      We should fix this.

      Attachments

        Issue Links

          Activity

            People

              Gengliang.Wang Gengliang Wang
              Gengliang.Wang Gengliang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: