cloud-fan commented on a change in pull request #28649:
URL: https://github.com/apache/spark/pull/28649#discussion_r459867268
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
##########
@@ -148,6 +148,15 @@ case class InsertIntoHiveTable(
|Table partitions:
${table.partitionColumnNames.mkString(",")}""".stripMargin)
}
+ val oldPart = if ( numDynamicPartitions == 0) {
Review comment:
or just make it a lazy val, so that we only compute it when needed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]