Skip to content

Commit 37c1c43

Browse files
baishuoliancheng
authored andcommitted
delete a empty else branch
1 parent 66e33fc commit 37c1c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ case class InsertIntoHiveTable(
153153
if (dynamicPartNum == 0) {
154154
writer.setup(context.stageId, context.partitionId, attemptNumber)
155155
writer.open()
156-
} else {
157-
158156
}
157+
159158
var count = 0
160159
// writer for Dynamic Partition
161160
var writer2: SparkHiveHadoopWriter = null
@@ -221,6 +220,7 @@ case class InsertIntoHiveTable(
221220
.map { case (c, v) => s"/$c=${handleNull(v, defaultPartName)}" }
222221
.mkString
223222
}
223+
224224
/*
225225
* if rowVal is null or "",will return HiveConf.get(hive.exec.default.partition.name) with default
226226
* */

0 commit comments

Comments
 (0)