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

Thejas M Nair commented on PIG-1429:
------------------------------------

My opinion on what should be the behavior for casts to/from boolean -
- explicit cast from numeric types and chararray to boolean and vice versa 
should be allowed
- implicit conversions from boolean to other types in arithmetic/boolean 
expressions should not be done. This is similar to the behavior in case of 
chararray. 
- The cast from a string (bytearray/chararray) to boolean should be false only 
if the string is 'false'. If the value is not 'true' or 'false' (case 
insensitive), I think it is better to return null, and increment the counter 
that keeps track of conversion errors. 


> Add Boolean Data Type to Pig
> ----------------------------
>
>                 Key: PIG-1429
>                 URL: https://issues.apache.org/jira/browse/PIG-1429
>             Project: Pig
>          Issue Type: New Feature
>          Components: data
>    Affects Versions: 0.7.0
>            Reporter: Russell Jurney
>            Assignee: Zhijie Shen
>              Labels: boolean, gsoc2011, pig, type
>         Attachments: PIG-1429_1.patch, PIG-1429_2.patch, working_boolean.patch
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> Pig needs a Boolean data type.  Pig-1097 is dependent on doing this.  
> I volunteer.  Is there anything beyond the work in src/org/apache/pig/data/ 
> plus unit tests to make this work?  
> This is a candidate project for Google summer of code 2011. More information 
> about the program can be found at http://wiki.apache.org/pig/GSoc2011

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to