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

Ayush Saxena updated HIVE-27562:
--------------------------------
    Description: 
Fetching virtual column fails with
{noformat}
Error: Error while compiling statement: FAILED: Execution Error, return code 2 
from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 
1, vertexId=vertex_1691064079730_0001_3_00, diagnostics=[Task failed, 
taskId=task_1691064079730_0001_3_00_000000, diagnostics=[TaskAttempt 0 failed, 
info=[Error: Error while running task ( failure ) : 
attempt_1691064079730_0001_3_00_000000_0:java.lang.RuntimeException: 
java.lang.RuntimeException: java.io.IOException: 
java.lang.IndexOutOfBoundsException: start index (4) must not be greater than 
size (1)
        at 
org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:348)
        at 
org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:276)
        at 
org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:381)
{noformat}

Or:

{noformat}
Caused by: java.lang.IllegalStateException: Not an instance of 
org.apache.iceberg.util.StructProjection: 2
        at org.apache.iceberg.data.GenericRecord.get(GenericRecord.java:123)
        at 
org.apache.iceberg.mr.hive.IcebergAcidUtil.computePartitionHash(IcebergAcidUtil.java:192)
        at 
org.apache.iceberg.mr.hive.IcebergAcidUtil$VirtualColumnAwareIterator.next(IcebergAcidUtil.java:255)
        at 
org.apache.iceberg.mr.mapreduce.IcebergInputFormat$IcebergRecordReader.nextKeyValue(IcebergInputFormat.java:279)
{noformat}


  was:
Fetching virtual column fails with
{noformat}
Error: Error while compiling statement: FAILED: Execution Error, return code 2 
from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 
1, vertexId=vertex_1691064079730_0001_3_00, diagnostics=[Task failed, 
taskId=task_1691064079730_0001_3_00_000000, diagnostics=[TaskAttempt 0 failed, 
info=[Error: Error while running task ( failure ) : 
attempt_1691064079730_0001_3_00_000000_0:java.lang.RuntimeException: 
java.lang.RuntimeException: java.io.IOException: 
java.lang.IndexOutOfBoundsException: start index (4) must not be greater than 
size (1)
        at 
org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:348)
        at 
org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:276)
        at 
org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:381)
{noformat}


> Iceberg: Fetching virtual columns failing
> -----------------------------------------
>
>                 Key: HIVE-27562
>                 URL: https://issues.apache.org/jira/browse/HIVE-27562
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>
> Fetching virtual column fails with
> {noformat}
> Error: Error while compiling statement: FAILED: Execution Error, return code 
> 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, 
> vertexName=Map 1, vertexId=vertex_1691064079730_0001_3_00, diagnostics=[Task 
> failed, taskId=task_1691064079730_0001_3_00_000000, diagnostics=[TaskAttempt 
> 0 failed, info=[Error: Error while running task ( failure ) : 
> attempt_1691064079730_0001_3_00_000000_0:java.lang.RuntimeException: 
> java.lang.RuntimeException: java.io.IOException: 
> java.lang.IndexOutOfBoundsException: start index (4) must not be greater than 
> size (1)
>       at 
> org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:348)
>       at 
> org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:276)
>       at 
> org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:381)
> {noformat}
> Or:
> {noformat}
> Caused by: java.lang.IllegalStateException: Not an instance of 
> org.apache.iceberg.util.StructProjection: 2
>       at org.apache.iceberg.data.GenericRecord.get(GenericRecord.java:123)
>       at 
> org.apache.iceberg.mr.hive.IcebergAcidUtil.computePartitionHash(IcebergAcidUtil.java:192)
>       at 
> org.apache.iceberg.mr.hive.IcebergAcidUtil$VirtualColumnAwareIterator.next(IcebergAcidUtil.java:255)
>       at 
> org.apache.iceberg.mr.mapreduce.IcebergInputFormat$IcebergRecordReader.nextKeyValue(IcebergInputFormat.java:279)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to