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

Check error classes in PlanParserSuite

    XMLWordPrintableJSON

Details

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

    Description

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

      intercept("EXPLAIN logical SELECT 1", "Unsupported SQL statement")
      

      by

      checkError(
            exception = parseException("EXPLAIN logical SELECT 1"),
            errorClass = "...",
            parameters = Map.empty,
            context = ...)
      

      at https://github.com/apache/spark/blob/35d00df9bba7238ad4f409999617fae4d04ddbfd/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/PlanParserSuite.scala#L225

      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: