You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2012/07/09 23:32:34 UTC

[jira] [Created] (HIVE-3246) java primitive type for binary datatype should be byte[]

Thejas M Nair created HIVE-3246:
-----------------------------------

             Summary: java primitive type for binary datatype should be byte[]
                 Key: HIVE-3246
                 URL: https://issues.apache.org/jira/browse/HIVE-3246
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: Thejas M Nair
            Assignee: Thejas M Nair


PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416821#comment-13416821 ] 

Ashutosh Chauhan commented on HIVE-3246:
----------------------------------------

[~thejas] Looks like the RB link is incorrect. Can you take a look?
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-3246:
--------------------------------

    Status: Patch Available  (was: Open)

Correct RB link - https://reviews.apache.org/r/5943/
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-3246:
--------------------------------

    Attachment: HIVE-3246.1.patch
    
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-3246:
--------------------------------

    Release Note: 
Makes the java primitive type for binary datatype - byte[]

          Status: Patch Available  (was: Open)

Patch is ready for review
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410703#comment-13410703 ] 

Edward Capriolo commented on HIVE-3246:
---------------------------------------

byte [] is not a primitive. I have no issue with the change but there must be a reason this was done. Likely a performance issue.
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410957#comment-13410957 ] 

Thejas M Nair commented on HIVE-3246:
-------------------------------------

bq. byte [] is not a primitive. I have no issue with the change but there must be a reason this was done. Likely a performance issue.
Yes, byte[] is not a java primitive type, but it as close as it gets to it (it is a basic type that ships with java). ByteArrayRef is just a wrapper around byte[], I don't see any performance advantage of using it when binary is converted to java primitive type using the getPrimitiveJavaObject  call. Fyi, Ashutosh implemented the binary type using ByteArrayRef in HIVE-2380, I believe he does not see a performance issue as well (based on his comment above.)

                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Travis Crawford (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13417155#comment-13417155 ] 

Travis Crawford commented on HIVE-3246:
---------------------------------------

I patched v2 of this patch into a clean trunk and was able to run the query that failed in HIVE-3266. It was a simple "select *" from a table using ThriftDeserializer that has a binary field.
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418081#comment-13418081 ] 

Ashutosh Chauhan commented on HIVE-3246:
----------------------------------------

+1. Looks good. Running tests.
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-3246:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10.0
     Release Note: This fix changes the internal representation of binary type within Hive. UDFs which were using binary type and making use of the fact that java representation of binary data in Hive is ByteArrayRef needs to be updated to reflect that now that representation is byte[] instead. Also note that this doesn't change the format for on-disk data.  (was: Makes the java primitive type for binary datatype - byte[]
)
     Hadoop Flags: Incompatible change
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks, Thejas!
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418447#comment-13418447 ] 

Ashutosh Chauhan commented on HIVE-3246:
----------------------------------------

Yeah. I will add the release notes while resolving this ticket.
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418835#comment-13418835 ] 

Hudson commented on HIVE-3246:
------------------------------

Integrated in Hive-trunk-h0.21 #1553 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1553/])
    HIVE-3246 : java primitive type for binary datatype should be byte[] (Thejas Nair via Ashutosh Chauhan) (Revision 1363427)

     Result = FAILURE
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1363427
Files : 
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/objectinspector/primitive/LazyBinaryObjectInspector.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/BinaryObjectInspector.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaBinaryObjectInspector.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/PrimitiveObjectInspectorConverter.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/PrimitiveObjectInspectorUtils.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/SettableBinaryObjectInspector.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/WritableBinaryObjectInspector.java
* /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/WritableConstantBinaryObjectInspector.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/TestStatsSerde.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/MyTestClass.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableSerDe.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/columnar/TestLazyBinaryColumnarSerDe.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/MyTestClassBigger.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinarySerDe.java
* /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestStandardObjectInspectors.java

                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409874#comment-13409874 ] 

Thejas M Nair commented on HIVE-3246:
-------------------------------------

The fix to use byte[] will not be backward compatible, but for the long term I think it is important to fix this. Hopefully, this won't affect too many people as binary datatype is relatively new.


                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418208#comment-13418208 ] 

Edward Capriolo commented on HIVE-3246:
---------------------------------------

We have to do a release note it people who write binary UDFs are going to be effected by the change.

https://github.com/edwardcapriolo/hive_cassandra_udfs

It seems like if you wrote a UDF that returns binary you may be effected depending on how you wrote it.
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410615#comment-13410615 ] 

Ashutosh Chauhan commented on HIVE-3246:
----------------------------------------

This makes sense. Primitive type should really be primitive. : ) 
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-3246:
--------------------------------

    Attachment: HIVE-3246.2.patch

HIVE-3246.2.patch - restoring comment that was accidentally reverted by previous patch .
Reviewboard link - https://reviews.apache.org/r/5414/

                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[]

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-3246:
-----------------------------

    Status: Open  (was: Patch Available)

See Ashutosh's comments above
                
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
>                 Key: HIVE-3246
>                 URL: https://issues.apache.org/jira/browse/HIVE-3246
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch
>
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira