[
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: [email protected]
For additional commands, e-mail: [email protected]