Jesus Camacho Rodriguez created HIVE-21064:
----------------------------------------------

             Summary: java.lang.ClassCastException: 
org.apache.hadoop.hive.serde2.lazy.LazyStruct cannot be cast to 
org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch
                 Key: HIVE-21064
                 URL: https://issues.apache.org/jira/browse/HIVE-21064
             Project: Hive
          Issue Type: Bug
            Reporter: Jesus Camacho Rodriguez


The error is present in one of the test files (parallel_orderby.q) and it was 
discovered while working on HIVE-16957. To reproduce:

{code}
set hive.mapred.mode=nonstrict;
set hive.stats.column.autogather=false;

create table src5_n2 (key string, value string);
load data local inpath '../../data/files/kv5.txt' into table src5_n2;
load data local inpath '../../data/files/kv5.txt' into table src5_n2;

set mapred.reduce.tasks = 4;
set hive.optimize.sampling.orderby=true;
set hive.optimize.sampling.orderby.percent=0.66f;

create table total_ordered as select * from src5_n2 order by key, value;
{code}

The create table statement throws the following exception:
{code}
java.lang.ClassCastException: org.apache.hadoop.hive.serde2.lazy.LazyStruct 
cannot be cast to org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch
{code}

The exception is printed in the q file. This was introduced when HIVE-18910 was 
checked in, I am not sure whether it is a known issue. Cc [~djaiswal] [~jdere]




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to