Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37935 Migrate onto error classes
  3. SPARK-40785

Check error classes in ExpressionParserSuite

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL

    Description

      Check error classes in ExpressionParserSuite by using checkError(). For instance, replace

      intercept("a like 'pattern%' escape '##'", message)
      

      by

      checkError(
            exception = parseException("a like 'pattern%' escape '##'"),
            errorClass = "...",
            parameters = Map.empty,
            context = ...)
      

      at https://github.com/apache/spark/blob/c4a0360daf546baa9cc970ef805f52c40f384fe3/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/ExpressionParserSuite.scala#L200

      Attachments

        Issue Links

          Activity

            People

              panbingkun BingKun Pan
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: