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

Gopal V commented on HIVE-6369:
-------------------------------

Yes, this is from a recent build.

But to make absolutely sure I disassembled the RLE writer from the built jar

{code}
private void preparePatchedBlob();
  Code:
   0:   lconst_1
   1:   aload_0
   2:   getfield        #142; //Field brBits95p:I
   5:   lshl
   6:   lconst_1
   7:   lsub
   8:   lstore_1
{code}

I can see that the operations are all lshl (long shift left) instead of ishl 
(integer shift left).

> ORC Writer (int RLE v2) fails with ArrayIndexOutOfBounds
> --------------------------------------------------------
>
>                 Key: HIVE-6369
>                 URL: https://issues.apache.org/jira/browse/HIVE-6369
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>    Affects Versions: 0.13.0
>         Environment: hadoop-2.2 + hive-0.13-trunk (f1807ede)
>            Reporter: Gopal V
>              Labels: orcfile
>
> The ORC writer for store_sales TPC-DS table fails with 
> {code}
> 2014-01-30 09:23:07,819 WARN [main] org.apache.hadoop.mapred.YarnChild: 
> Exception running child : java.lang.ArrayIndexOutOfBoundsException: 2
>       at 
> org.apache.hadoop.hive.ql.io.orc.RunLengthIntegerWriterV2.preparePatchedBlob(RunLengthIntegerWriterV2.java:593)
>       at 
> org.apache.hadoop.hive.ql.io.orc.RunLengthIntegerWriterV2.determineEncoding(RunLengthIntegerWriterV2.java:541)
>       at 
> org.apache.hadoop.hive.ql.io.orc.RunLengthIntegerWriterV2.flush(RunLengthIntegerWriterV2.java:682)
>       at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl$IntegerTreeWriter.writeStripe(WriterImpl.java:752)
>       at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl$StructTreeWriter.writeStripe(WriterImpl.java:1330)
>       at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl.flushStripe(WriterImpl.java:1699)
>       at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl.close(WriterImpl.java:1868)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to