You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Nikolay Sokolov (JIRA)" <ji...@apache.org> on 2017/09/04 04:52:00 UTC

[jira] [Created] (HIVE-17448) ArrayIndexOutOfBoundsException on ORC tables after adding a struct field

Nikolay Sokolov created HIVE-17448:
--------------------------------------

             Summary: ArrayIndexOutOfBoundsException on ORC tables after adding a struct field
                 Key: HIVE-17448
                 URL: https://issues.apache.org/jira/browse/HIVE-17448
             Project: Hive
          Issue Type: Bug
          Components: ORC
    Affects Versions: 2.1.1
         Environment: Reproduced on Dataproc 1.1, 1.2 (Hive 2.1).
            Reporter: Nikolay Sokolov
            Priority: Minor


When ORC files have been created with older schema, which had smaller set of struct fields, and schema have been changed to one with more struct fields, and there are sibling fields of struct type going after struct itself, ArrayIndexOutOfBoundsException is being thrown. Steps to reproduce:
{code:none}
create external table test_broken_struct(a struct<f1:int, f2:int>, b int);
insert into table test_broken_struct 
    select named_struct("f1", 1, "f2", 2), 3;
drop table test_broken_struct;
create external table test_broken_struct(a struct<f1:int, f2:int, f3:int>, b int);
select * from test_broken_struct;
{code}

Same scenario is not causing crash on hive 0.14.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)