PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 13 lines | 8 code | 5 blank | 0 comment | 0 complexity | c6647366cbd3c31036a08eaf5e537cd0 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. set hive.exec.dynamic.partition=true;
  2. set hive.exec.dynamic.partition.mode=nonstrict;
  3. create table if not exists load_dyn_part15_test (key string)
  4. partitioned by (part_key string);
  5. show partitions load_dyn_part15_test;
  6. INSERT OVERWRITE TABLE load_dyn_part15_test PARTITION(part_key)
  7. SELECT key, part_key FROM src LATERAL VIEW explode(array("1","{2","3]")) myTable AS part_key;
  8. show partitions load_dyn_part15_test;