Skip to content

Commit

Permalink
Update HiveQuerySuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
baishuo authored and liancheng committed Sep 17, 2014
1 parent 60f70aa commit 0e18496
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,18 @@ class HiveQuerySuite extends HiveComparisonTest {
|insert overwrite table src_lv2 SELECT key, D.* lateral view explode(array(key+3, key+4)) D as CX
""".stripMargin)

createQueryTest("dynamice partiton",
"""
|drop table IF EXISTS dynamic_part_table;
|create table dynamic_part_table(intcol int) partitioned by (partcol1 int, partcol2 int);
|set hive.exec.dynamic.partition.mode=nonstrict;
|insert into table dynamic_part_table partition(partcol1, partcol2) select 1, 1, 1 from src where key=150;
|insert into table dynamic_part_table partition(partcol1, partcol2) select 1, NULL, 1 from src where key=150;
|insert into table dynamic_part_table partition(partcol1, partcol2) select 1, 1, NULL from src where key=150;
|insert into table dynamic_part_table partition(partcol1, partcol2) select 1, NULL, NULL from src where key=150;
|drop table IF EXISTS dynamic_part_table;
""".stripMargin)

createQueryTest("lateral view5",
"FROM src SELECT explode(array(key+3, key+4))")

Expand Down

0 comments on commit 0e18496

Please sign in to comment.