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

Assign a name to the error class _LEGACY_ERROR_TEMP_1092

    XMLWordPrintableJSON

Details

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

    Description

      Assign a proper name to the legacy error class _LEGACY_ERROR_TEMP_1092 and make it visible to users.

      The example below shows the issue:

      > select from_json('{"a":1}', 1);
      
      org.apache.spark.sql.AnalysisException
      {
        "errorClass" : "LEGACY",
        "messageParameters" : {
          "message" : "The expression '1' is not a valid schema string.; line 1 pos 7"
      ...
      

      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: