[ https://issues.apache.org/jira/browse/PIG-3558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986811#comment-13986811 ]
Mona Chitnis commented on PIG-3558: ----------------------------------- If Hive type Binary is equated to Pig's bytearray {code} public static Object getPrimaryFromOrc(Object obj, PrimitiveObjectInspector poi) { Object result; switch (poi.getPrimitiveCategory()) { . . . case BINARY: result = new DataByteArray(((BytesWritable) obj).copyBytes()); break; {code} Is there a reason we cannot typecast it back to Binary during a store back to Orc? I can make it work by explicitly casting that column to int but I'd like to confirm it doesnt violate any Hive metadata serialization. > ORC support for Pig > ------------------- > > Key: PIG-3558 > URL: https://issues.apache.org/jira/browse/PIG-3558 > Project: Pig > Issue Type: Improvement > Components: impl > Reporter: Daniel Dai > Assignee: Daniel Dai > Labels: porc > Fix For: 0.13.0 > > Attachments: PIG-3558-1.patch, PIG-3558-2.patch, PIG-3558-3.patch, > PIG-3558-4.patch, PIG-3558-5.patch > > > Adding LoadFunc and StoreFunc for ORC. -- This message was sent by Atlassian JIRA (v6.2#6252)