PageRenderTime 55ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/load_dyn_part8.q

#
text | 24 lines | 15 code | 9 blank | 0 comment | 0 complexity | a7cbaaa53a1f80fb5d031d514b2d95bf MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. show partitions srcpart;
  2. create table if not exists nzhang_part8 like srcpart;
  3. describe extended nzhang_part8;
  4. set hive.merge.mapfiles=false;
  5. set hive.exec.dynamic.partition=true;
  6. set hive.exec.dynamic.partition.mode=nonstrict;
  7. explain extended
  8. from srcpart
  9. insert overwrite table nzhang_part8 partition (ds, hr) select key, value, ds, hr where ds <= '2008-04-08'
  10. insert overwrite table nzhang_part8 partition(ds='2008-12-31', hr) select key, value, hr where ds > '2008-04-08';
  11. from srcpart
  12. insert overwrite table nzhang_part8 partition (ds, hr) select key, value, ds, hr where ds <= '2008-04-08'
  13. insert overwrite table nzhang_part8 partition(ds='2008-12-31', hr) select key, value, hr where ds > '2008-04-08';
  14. show partitions nzhang_part8;
  15. select * from nzhang_part8 where ds is not null and hr is not null;