PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/hbase-handler/src/test/queries/hbase_stats.q

#
text | 21 lines | 14 code | 7 blank | 0 comment | 0 complexity | 48037d7c5671fb8bc220b6422be3594f MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. set datanucleus.cache.collections=false;
  2. set hive.stats.dbclass=hbase;
  3. create table stats_src like src;
  4. insert overwrite table stats_src select * from src;
  5. analyze table stats_src compute statistics;
  6. desc formatted stats_src;
  7. create table hbase_part like srcpart;
  8. insert overwrite table hbase_part partition (ds='2010-04-08', hr = '11') select key, value from src;
  9. insert overwrite table hbase_part partition (ds='2010-04-08', hr = '12') select key, value from src;
  10. analyze table hbase_part partition(ds='2008-04-08', hr=11) compute statistics;
  11. analyze table hbase_part partition(ds='2008-04-08', hr=12) compute statistics;
  12. desc formatted hbase_part;
  13. desc formatted hbase_part partition (ds='2010-04-08', hr = '11');
  14. desc formatted hbase_part partition (ds='2010-04-08', hr = '12');