kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: impala got duplicate fields after compute stats on kudu table
Date Mon, 18 Apr 2016 15:07:51 GMT
Hi Darren,

Is this with Impala Kudu 0.8.0 or a previous version?

Thx,

J-D

On Mon, Apr 18, 2016 at 7:29 AM, Darren Hoo <darren.hoo@gmail.com> wrote:

> 1. create a kudu table  to test
>
>
> create table t2 (
>
>     id  INT,
>
>     cid INT
>
> )
>
> TBLPROPERTIES(
>
>   'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
>
>   'kudu.table_name' = 't2',
>
>   'kudu.key_columns' = 'id',
>
>   'kudu.master_addresses' = 'master:7051'
>
> );
>
>
>
> 2. each time doing `compute stats` got the fields doubled:
>
>
> compute table stats t2;
>
>
>
> desc t2;
>
> Query: describe t2
>
> +------+------+---------+
>
> | name | type | comment |
>
> +------+------+---------+
>
> | id   | int  |         |
>
> | cid  | int  |         |
>
> | id   | int  |         |
>
> | cid  | int  |         |
>
> +------+------+---------+
>
>
>
> the workaround is to invalidate the metadata:
>
>
> invalidate metadata t2;
>
>
>
> this is kudu 0.8.0 on cdh5.7
>

Mime
View raw message