You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2017/04/27 14:49:04 UTC

[jira] [Created] (SPARK-20492) Do not print empty parentheses for invalid primitive types in parser

Hyukjin Kwon created SPARK-20492:
------------------------------------

             Summary: Do not print empty parentheses for invalid primitive types in parser
                 Key: SPARK-20492
                 URL: https://issues.apache.org/jira/browse/SPARK-20492
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.2.0
            Reporter: Hyukjin Kwon
            Priority: Trivial


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

{code}
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
^^^
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org