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

Check error classes in SparkSqlParserSuite

    XMLWordPrintableJSON

Details

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

    Description

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

      intercept("SET spark.sql.key value", expectedErrMsg)
      

      by

      checkError(
            exception = parseException("SET spark.sql.key value"),
            errorClass = "...",
            parameters = Map.empty,
            context = ...)
      

      at https://github.com/apache/spark/blob/7309e76d8b95e306d6f3d2f611316b748949e9cf/sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala#L113

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: