Skip to content

Commit 74d5984

Browse files
committed
Add notes.
1 parent 355496e commit 74d5984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ private[hive] class HiveClientImpl(
645645
// whose specs are supersets of this partial spec. E.g. If a table has partitions
646646
// (b='1', c='1') and (b='1', c='2'), a partial spec of (b='1') will match both.
647647
val parts = client.getPartitions(hiveTable, s.asJava).asScala
648+
// Check whether the partition we are going to drop is empty.
649+
// We make a dummy one for the empty partition. See [SPARK-29786] for more details.
648650
parts.foreach { partition =>
649651
val partPath = partition.getDataLocation
650652
if (isEmptyPath(partPath)) {

0 commit comments

Comments
 (0)