Skip to content

Commit 248b6cf

Browse files
committed
UT failed #119927, getDataLocation->getPartitionPath
1 parent 84b1da8 commit 248b6cf

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/client/HiveClientImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,12 @@ private[hive] class HiveClientImpl(
648648
if (parts.isEmpty && !ignoreIfNotExists) {
649649
throw new AnalysisException(
650650
s"No partition is dropped. One partition spec '$s' does not exist in table '$table' " +
651-
s"database '$db'")
651+
s"database '$db'")
652652
}
653653
// Check whether the partition we are going to drop is empty.
654654
// We make a dummy one for the empty partition. See [SPARK-29786] for more details.
655655
parts.foreach { partition =>
656-
val partPath = partition.getDataLocation
656+
val partPath = partition.getPartitionPath
657657
if (isEmptyPath(partPath)) {
658658
val fs = partPath.getFileSystem(conf)
659659
fs.mkdirs(partPath)

0 commit comments

Comments
 (0)