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

Do not print empty parentheses for invalid primitive types in parser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • SQL
    • None

    Description

      This JIRA describes a small improvement in an error message as below:

      scala> spark.range(1).select($"col".cast("aa"))
      org.apache.spark.sql.catalyst.parser.ParseException:
      DataType aa() is not supported.(line 1, pos 0)
      
      == SQL ==
      aa
      ^^^
      

      Currently, when the types are invalid, it looks printing empty parentheses.

      Attachments

        Activity

          People

            gurwls223 Hyukjin Kwon
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: