You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2017/04/30 15:26:04 UTC

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

     [ https://issues.apache.org/jira/browse/SPARK-20492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herman van Hovell resolved SPARK-20492.
---------------------------------------
       Resolution: Fixed
         Assignee: Hyukjin Kwon
    Fix Version/s: 2.2.0

> 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
>            Assignee: Hyukjin Kwon
>            Priority: Trivial
>             Fix For: 2.2.0
>
>
> 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