Skip to content

Commit 5a5ff74

Browse files
committed
UT failed #120087. Hive-0.13 doesn't have Partition.getPartitionPath(), using Partition.getPath() instead.
1 parent 9d75854 commit 5a5ff74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ private[hive] class HiveClientImpl(
658658
// Check whether the partition we are going to drop is empty.
659659
// We make a dummy one for the empty partition. See [SPARK-29786] for more details.
660660
parts.foreach { partition =>
661-
val partPath = partition.getPartitionPath
661+
val partPath = partition.getPath.head
662662
if (isEmptyPath(partPath)) {
663663
val fs = partPath.getFileSystem(conf)
664664
fs.mkdirs(partPath)

0 commit comments

Comments
 (0)