hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15190) Field names are not preserved in ORC files written with ACID
Date Mon, 18 Jun 2018 00:32:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-15190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16515263#comment-16515263
] 

Prasanth Jayachandran commented on HIVE-15190:
----------------------------------------------

Fixes tests

> Field names are not preserved in ORC files written with ACID
> ------------------------------------------------------------
>
>                 Key: HIVE-15190
>                 URL: https://issues.apache.org/jira/browse/HIVE-15190
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.1.0, 2.2.0, 3.1.0, 4.0.0
>            Reporter: Anthony Hsu
>            Assignee: Prasanth Jayachandran
>            Priority: Critical
>         Attachments: HIVE-15190.1.patch, HIVE-15190.2.patch, HIVE-15190.3.patch, HIVE-15190.4.patch
>
>
> To repro:
> {noformat}
> drop table if exists orc_nonacid;
> drop table if exists orc_acid;
> create table orc_nonacid (a int) clustered by (a) into 2 buckets stored as orc;
> create table orc_acid (a int) clustered by (a) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true');
> insert into table orc_nonacid values(1), (2);
> insert into table orc_acid values(1), (2);
> {noformat}
> Running {{hive --service orcfiledump <file>}} on the files created by the {{insert}}
statements above, you'll see that for {{orc_nonacid}}, the files have schema {{struct<a:int>}}
whereas for {{orc_acid}}, the files have schema {{struct<operation:int,originalTransaction:bigint,bucket:int,rowId:bigint,currentTransaction:bigint,row:struct<_col0:int>>}}.
The last field {{row}} should have schema {{struct<a:int>}}.



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

Mime
View raw message