[ 
https://issues.apache.org/jira/browse/SPARK-18174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15620785#comment-15620785
 ] 

Xiao Li commented on SPARK-18174:
---------------------------------

Yeah. Your concern is right. The impact of implicit type casting is not small. 
I posted some thoughts in the PR. We should not merge this PR anyway.

> Avoid Implicit Type Cast in Arguments of Expressions Extending 
> String2StringExpression
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-18174
>                 URL: https://issues.apache.org/jira/browse/SPARK-18174
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.1
>            Reporter: Xiao Li
>
> For the expressions that extend String2StringExpression (lower, upper, ltrim, 
> rtrim, trim and reverse), Analyzer should not implicitly cast the arguments 
> to string. If users input the some data types instead of string, we should 
> issue an exception for this misuse.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to