Skip to content

Commit

Permalink
comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Feb 7, 2015
1 parent f8f8bb1 commit aa55ef4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ private[spark] class SparkHiveDynamicPartitionWriterContainer(
.zip(row.toSeq.takeRight(dynamicPartColNames.length))
.map { case (col, rawVal) =>
val string = if (rawVal == null) null else String.valueOf(rawVal)
s"/$col=${
val colString =
if (string == null || string.isEmpty) {
defaultPartName
} else {
FileUtils.escapePathName(string)
}
}"
s"/$col=$colString"
}.mkString

def newWriter = {
Expand Down

0 comments on commit aa55ef4

Please sign in to comment.