hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt McCline (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-7422) Array out of bounds exception involving ql.exec.vector.expressions.aggregates.gen.VectorUDAFAvgDouble
Date Wed, 16 Jul 2014 00:09:04 GMT
Matt McCline created HIVE-7422:
----------------------------------

             Summary: Array out of bounds exception involving ql.exec.vector.expressions.aggregates.gen.VectorUDAFAvgDouble
                 Key: HIVE-7422
                 URL: https://issues.apache.org/jira/browse/HIVE-7422
             Project: Hive
          Issue Type: Bug
            Reporter: Matt McCline
            Assignee: Matt McCline


One of several found by Raj Bains.

M/R or Tez.
{code}
set hive.vectorized.execution.enabled=true;
{code}

Query:
{code}
SELECT `Starbucks`.`product` AS `none_product_nk`,   AVG(CAST(50 AS DOUBLE)) AS `avg_x_ok`,
  AVG(CAST(50 AS DOUBLE)) AS `avg_y_ok` FROM `default`.`testv1_Starbucks` `Starbucks` GROUP
BY `Starbucks`.`product` ;
{code}

Stack trace:
{code}
Caused by: java.lang.ArrayIndexOutOfBoundsException: 50
	at org.apache.hadoop.hive.ql.exec.vector.expressions.gen.CastLongToDouble.evaluate(CastLongToDouble.java:50)
	at org.apache.hadoop.hive.ql.exec.vector.expressions.aggregates.gen.VectorUDAFAvgDouble.aggregateInputSelection(VectorUDAFAvgDouble.java:139)
	at org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator$ProcessingModeBase.processAggregators(VectorGroupByOperator.java:121)
	at org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator$ProcessingModeHashAggregate.processBatch(VectorGroupByOperator.java:295)
	at org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator.processOp(VectorGroupByOperator.java:711)
	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:800)
	at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.processOp(VectorSelectOperator.java:139)
	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:800)
	at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:95)
	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:800)
	at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:43)
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message