aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test/resources/ql/src/test/queries/clientpositive/stats20.q
blob: 59701bde771dcaed680b115aacfacc27a1b3daae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set hive.stats.autogather=true;
set datanucleus.cache.collections=false;

set hive.stats.collect.rawdatasize=true;
CREATE TABLE stats_partitioned(key string, value string) partitioned by (ds string);
insert overwrite table stats_partitioned partition (ds='1')
select * from src;
-- rawDataSize is 5312 after config is turned on
describe formatted stats_partitioned;

set hive.stats.collect.rawdatasize=false;
insert overwrite table stats_partitioned partition (ds='1')
select * from src;
-- rawDataSize is 0 after config is turned off
describe formatted stats_partitioned;