Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23462

Improve the error message in `StructType`

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1, 2.4.0
    • Component/s: SQL
    • Labels:

      Description

      The error message s"""Field "$name" does not exist.""" is thrown when looking up an unknown field in StructType. In the error message, we should also contain the information about which columns/fields exist in this struct.

        Attachments

          Activity

            People

            • Assignee:
              xiayunsun Xiayun Sun
              Reporter:
              smilegator Xiao Li
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: