[ https://issues.apache.org/jira/browse/PARQUET-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manish Agarwal updated PARQUET-228: ----------------------------------- Description: My table is having a binary column . I pushed 2 bytes it which were FF FF . values[i]= new BinaryWritable(Binary.fromByteArray(bytes,offset,length)); When i do a print of Binary.fromByteArray(bytes,offset,length) i get binary is [Binary{2 bytes, [-1, -1]}] Now when I read the same from hive using hive -e "select hex(binarycolumn) from mytable;" > /data/myresultFile I get EFBFBDEFBFBD instead of FFFF . What am i doing wrong ? was: My table is having a binary column . I pushed 2 bytes it which were FF FF . values[i]= new BinaryWritable(Binary.fromByteArray(bytes,offset,length)); When i do a print of Binary.fromByteArray(bytes,offset,length) i get binary is [Binary{2 bytes, [-1, -1]}] Now when i read the same from hive i get EFBFBDEFBFBD instead of FFFF . What am i doing wrong ? > parquet Binary Writable result is not proper > -------------------------------------------- > > Key: PARQUET-228 > URL: https://issues.apache.org/jira/browse/PARQUET-228 > Project: Parquet > Issue Type: Bug > Reporter: Manish Agarwal > > My table is having a binary column . I pushed 2 bytes it which were FF FF . > values[i]= new BinaryWritable(Binary.fromByteArray(bytes,offset,length)); > When i do a print of Binary.fromByteArray(bytes,offset,length) i get > binary is [Binary{2 bytes, [-1, -1]}] > Now when I read the same from hive using > hive -e "select hex(binarycolumn) from mytable;" > /data/myresultFile > I get EFBFBDEFBFBD instead of FFFF . > What am i doing wrong ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)