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

Dmitriy V. Ryaboy commented on PIG-1429:
----------------------------------------

We already have a public bytesToBoolean method in Utf8StorageConverter and 
should keep its behavior (which is precisely this). In fact, looks like 
DataReaderWriter (used by BinStorage) already supports booleans, also as 
strings.

This does mean we are being really inefficient in storing booleans in our 
binary format. BinInterSedes also does this, even though it could be flipping 
to INTEGER_0. This would be preferable, I think, at least for the internal data 
formats.

> 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: 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