Skip to content

Commit

Permalink
use HiveConf.DEFAULTPARTITIONNAME to replace hive.exec.default.partit…
Browse files Browse the repository at this point in the history
…ion.name
  • Loading branch information
baishuo authored and liancheng committed Sep 17, 2014
1 parent b47c9bf commit 2201c75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ case class InsertIntoHiveTable(
val fieldOIs = standardOI.getAllStructFieldRefs.map(_.getFieldObjectInspector).toArray
val outputData = new Array[Any](fieldOIs.length)
val defaultPartName = jobConfSer.value.get(
"hive.exec.default.partition.name ", "__HIVE_DEFAULT_PARTITION__")

HiveConf.ConfVars.DEFAULTPARTITIONNAME.varname, HiveConf.ConfVars.DEFAULTPARTITIONNAME.defaultVal)
val partitionColumns = fileSinkConf.getTableInfo.
getProperties.getProperty("partition_columns") // a String like "colname1/colname2"
val partitionColumnNames = Option(partitionColumns).map(_.split("/")).orNull
Expand Down

0 comments on commit 2201c75

Please sign in to comment.