Skip to content

Commit

Permalink
added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Feb 5, 2015
1 parent f24624f commit f8f8bb1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"partition_date",
"partition_schema1",
"partition_serde_format",
"partition_special_char",
"partition_type_check",
"partition_varchar1",
"partition_wise_fileformat4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,22 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
}
}

test("SPARK-5592: get java.net.URISyntaxException when dynamic partitioning") {
sql("""
|create table sc as select *
|from (select '2011-01-11', '2011-01-11+14:18:26' from src tablesample (1 rows)
|union all
|select '2011-01-11', '2011-01-11+15:18:26' from src tablesample (1 rows)
|union all
|select '2011-01-11', '2011-01-11+16:18:26' from src tablesample (1 rows) ) s
""".stripMargin)
sql("create table sc_part (key string) partitioned by (ts string) stored as rcfile")
sql("set hive.exec.dynamic.partition=true")
sql("set hive.exec.dynamic.partition.mode=nonstrict")
sql("insert overwrite table sc_part partition(ts) select * from sc")
sql("drop table sc_part")
}

test("Partition spec validation") {
sql("DROP TABLE IF EXISTS dp_test")
sql("CREATE TABLE dp_test(key INT, value STRING) PARTITIONED BY (dp INT, sp INT)")
Expand Down

0 comments on commit f8f8bb1

Please sign in to comment.