File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive/client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments