You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2017/07/26 00:04:13 UTC

[jira] [Closed] (HIVE-15417) Glitches using ACID's row__id hidden column

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

Owen O'Malley closed HIVE-15417.
--------------------------------

> Glitches using ACID's row__id hidden column
> -------------------------------------------
>
>                 Key: HIVE-15417
>                 URL: https://issues.apache.org/jira/browse/HIVE-15417
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Carter Shanklin
>            Assignee: Jesus Camacho Rodriguez
>             Fix For: 2.2.0
>
>         Attachments: HIVE-15417.01.patch, HIVE-15417.02.patch, HIVE-15417.patch
>
>
> This only works if you turn PPD off.
> {code:sql}
> drop table if exists hello_acid;
> create table hello_acid (key int, value int)
> partitioned by (load_date date)
> clustered by(key) into 3 buckets
> stored as orc tblproperties ('transactional'='true');
> insert into hello_acid partition (load_date='2016-03-01') values (1, 1);
> insert into hello_acid partition (load_date='2016-03-02') values (2, 2);
> insert into hello_acid partition (load_date='2016-03-03') values (3, 3);
> {code}
> {code}
> hive> set hive.optimize.ppd=true;
> hive> select tid from (select row__id.transactionid as tid from hello_acid) sub where tid = 15;
> FAILED: SemanticException MetaException(message:cannot find field row__id from [0:load_date])
> hive> set hive.optimize.ppd=false;
> hive> select tid from (select row__id.transactionid as tid from hello_acid) sub where tid = 15;
> OK
> tid
> 15
> Time taken: 0.075 seconds, Fetched: 1 row(s)
> {code}



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