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

Check error classes in DDLParserSuite

    XMLWordPrintableJSON

Details

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

    Description

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

      intercept("CREATE TABLE my_tab (id bigint) SKEWED BY (id) ON (1,2,3)",
            "CREATE TABLE ... SKEWED BY")
      

      by

      checkError(
            exception = parseException("CREATE TABLE my_tab (id bigint) SKEWED BY (id) ON (1,2,3)"),
            errorClass = "...",
            parameters = Map.empty,
            context = ...)
      

      at https://github.com/apache/spark/blob/1a1341910249d545365ba3d6679c6943896dde22/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala#L546

      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: