Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-3007][SQL]Add Dynamic Partition support to Spark Sql hive #2226

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
dc24c41
Update HiveQl.scala
baishuo Aug 12, 2014
701a814
Update SparkHadoopWriter.scala
baishuo Aug 12, 2014
a2374a8
Update InsertIntoHiveTable.scala
baishuo Aug 12, 2014
491c7d0
Update InsertIntoHiveTable.scala
baishuo Aug 12, 2014
0a50db9
Update HiveCompatibilitySuite.scala
baishuo Aug 18, 2014
60f70aa
Update InsertIntoHiveTable.scala
baishuo Aug 18, 2014
0e18496
Update HiveQuerySuite.scala
baishuo Aug 18, 2014
c1a59dd
Update Cast.scala
baishuo Aug 18, 2014
f7467d0
Update InsertIntoHiveTable.scala
baishuo Aug 18, 2014
a3961d9
Update Cast.scala
baishuo Aug 18, 2014
88d0110
update file after test
baishuo Aug 19, 2014
66e33fc
do a little modify
baishuo Aug 19, 2014
37c1c43
delete a empty else branch
baishuo Sep 3, 2014
7ce2d9f
modify code to pass scala style checks
baishuo Sep 3, 2014
c3ab36d
modify for some bad indentation
baishuo Sep 3, 2014
b47c9bf
modify according micheal's advice
baishuo Sep 9, 2014
2201c75
use HiveConf.DEFAULTPARTITIONNAME to replace hive.exec.default.partit…
baishuo Sep 10, 2014
5033928
pass check style
baishuo Sep 10, 2014
c464b26
Refactors dynamic partitioning support
liancheng Sep 16, 2014
528e84c
Fixes typo in test name, regenerated golden answer files
liancheng Sep 17, 2014
fae9eff
Refactors InsertIntoHiveTable to a Command
liancheng Sep 17, 2014
5004542
Minor refactoring
liancheng Sep 17, 2014
1093c20
Adds more tests
liancheng Sep 17, 2014
096bbbc
Merge pull request #1 from liancheng/refactor-dp
baishuo Sep 17, 2014
b20a3dc
Addresses @yhuai's comments
liancheng Sep 18, 2014
e69ce88
Adds tests to verify dynamic partitioning folder layout
liancheng Sep 22, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,23 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
*/
override def whiteList = Seq(
"add_part_exist",
"dynamic_partition_skip_default",
"infer_bucket_sort_dyn_part",
"load_dyn_part1",
"load_dyn_part2",
"load_dyn_part3",
"load_dyn_part4",
"load_dyn_part5",
"load_dyn_part6",
"load_dyn_part7",
"load_dyn_part8",
"load_dyn_part9",
"load_dyn_part10",
"load_dyn_part11",
"load_dyn_part12",
"load_dyn_part13",
"load_dyn_part14",
"load_dyn_part14_win",
"add_part_multiple",
"add_partition_no_whitelist",
"add_partition_with_whitelist",
Expand Down
195 changes: 0 additions & 195 deletions sql/hive/src/main/scala/org/apache/spark/SparkHadoopWriter.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -827,11 +827,6 @@ private[hive] object HiveQl {
cleanIdentifier(key.toLowerCase) -> None
}.toMap).getOrElse(Map.empty)

if (partitionKeys.values.exists(p => p.isEmpty)) {
throw new NotImplementedError(s"Do not support INSERT INTO/OVERWRITE with" +
s"dynamic partitioning.")
}

InsertIntoTable(UnresolvedRelation(db, tableName, None), partitionKeys, query, overwrite)

case a: ASTNode =>
Expand Down
Loading