You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Krisztian Kasa (Jira)" <ji...@apache.org> on 2020/02/14 07:03:00 UTC

[jira] [Resolved] (ORC-598) Unable to read ORC file with struct and array.length > 1024

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

Krisztian Kasa resolved ORC-598.
--------------------------------
    Resolution: Fixed

> Unable to read ORC file with struct and array.length > 1024
> -----------------------------------------------------------
>
>                 Key: ORC-598
>                 URL: https://issues.apache.org/jira/browse/ORC-598
>             Project: ORC
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.5.1, 1.6.2
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Major
>         Attachments: bigarray.orc
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> *Repro*
> Attached orc file schema
> {code}
> java -jar orc-1.5.5/java/tools/target/orc-tools-1.5.5-uber.jar meta bigarray.orc
> log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> Processing data file bigarray.orc [length: 2337]
> Structure for bigarray.orc
> File Version: 0.12 with FUTURE
> Rows: 1
> Compression: ZLIB
> Compression size: 262144
> Type: struct<col1:array<decimal(5,1)>>
> {code}
> {code}
> CREATE EXTERNAL TABLE t1(col1 array<decimal(6,1)>)
> STORED AS orc
> LOCATION '<location of containing folder of bigarray.orc>';
> SELECT * FROM t1;
> {code}
> {code}
> Error: java.io.IOException: java.lang.ArrayIndexOutOfBoundsException: 1024 (state=,code=0)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)