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

Yin Huai commented on SPARK-10442:
----------------------------------

We need to document this behavior change in our release note. The new behavior 
is that casting a string to a boolean will return true for 't' 'true' 'y' 'yes' 
'1',  false for 'f' 'false' 'n' 'no' '0' and null for others. The matching of 
those literals are case in-sensitive.

> select cast('false' as boolean) returns true
> --------------------------------------------
>
>                 Key: SPARK-10442
>                 URL: https://issues.apache.org/jira/browse/SPARK-10442
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>            Priority: Critical
>              Labels: release_notes, releasenotes
>             Fix For: 1.6.0
>
>




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

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

Reply via email to