Skip to content

Commit 744aa20

Browse files
committed
Use getAllPartitionsForPruner instead of getPartitions, which avoids retrieving auth data
1 parent fc71658 commit 744aa20

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/HiveMetastoreCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
5353
val table = client.getTable(databaseName, tableName)
5454
val partitions: Seq[Partition] =
5555
if (table.isPartitioned) {
56-
client.getPartitions(table)
56+
client.getAllPartitionsForPruner(table).toSeq
5757
} else {
5858
Nil
5959
}

0 commit comments

Comments
 (0)