[ 
https://issues.apache.org/jira/browse/HIVE-9080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Haviv updated HIVE-9080:
-------------------------------
    Attachment: ORC_TABLE.sql
                test_table.sql
                test_table.txt

To reproduce:
1. Create the test_table as described in test_table.sql
2. LOAD DATA LOCAL INPATH './test_table.txt' OVERWRITE INTO test_table;
3. Create the ORC based table as described in orc_table.sql
4. Insert into table orc_table as select * from test_table;
5. Repeat: Insert into table orc_table as select * from test_table;
6. Try to concatenate the two files created for ORC_table:
     alter table orc_table concatenate;



> ORC Concatenate fails on: Column has wrong number of index entries found: 0 
> expected: 1
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-9080
>                 URL: https://issues.apache.org/jira/browse/HIVE-9080
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>    Affects Versions: 0.14.0
>            Reporter: Daniel Haviv
>         Attachments: ORC_TABLE.sql, test_table.sql, test_table.txt
>
>
> When running "alter table test_table concatenate;" on an ORC table an error 
> is raised:
> Error: java.lang.IllegalArgumentException: Column has wrong number of index 
> entries found: 0 expected: 1
>         at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl$TreeWriter.writeStripe(WriterImpl.java:726)
>         at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl$StructTreeWriter.writeStripe(WriterImpl.java:1614)
>         at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl.flushStripe(WriterImpl.java:1996)
>         at 
> org.apache.hadoop.hive.ql.io.orc.WriterImpl.close(WriterImpl.java:2288)
>         at 
> org.apache.hadoop.hive.ql.exec.OrcFileMergeOperator.closeOp(OrcFileMergeOperator.java:215)
>         at 
> org.apache.hadoop.hive.ql.io.merge.MergeFileMapper.close(MergeFileMapper.java:98)
>         at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:61)
>         at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:450)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
>         at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:415)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
>         at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to