Skip to content

Commit

Permalink
Update InsertIntoHiveTable.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 c1a59dd commit f7467d0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ case class InsertIntoHiveTable(
}
}

if (dynamicPartNum>0) {
if (dynamicPartNum > 0) {
if (outputClass == null) {
throw new SparkException("Output value class not set")
}
Expand Down Expand Up @@ -343,7 +343,6 @@ case class InsertIntoHiveTable(
sc.hiveconf.getBoolean("hive.exec.compress.output", false))
}

// TODO: Handle dynamic partitioning.
val outputPath = FileOutputFormat.getOutputPath(jobConf)
// Have to construct the format of dbname.tablename.
val qualifiedTableName = s"${table.databaseName}.${table.tableName}"
Expand All @@ -359,7 +358,7 @@ case class InsertIntoHiveTable(
val inheritTableSpecs = true
// TODO: Correctly set isSkewedStoreAsSubdir.
val isSkewedStoreAsSubdir = false
if (dynamicPartNum>0) {
if (dynamicPartNum > 0) {
db.loadDynamicPartitions(
outputPath,
qualifiedTableName,
Expand Down

0 comments on commit f7467d0

Please sign in to comment.