Skip to content

Commit

Permalink
revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luluorta committed Nov 16, 2020
1 parent bf1e56a commit 0cc0b42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ case class HiveTableScanExec(
prunePartitions(hivePartitions)
}
} else {
if (conf.metastorePartitionPruning &&
if (sparkSession.sessionState.conf.metastorePartitionPruning &&
partitionPruningPred.nonEmpty) {
rawPartitions
} else {
Expand All @@ -184,7 +184,7 @@ case class HiveTableScanExec(
// exposed for tests
@transient lazy val rawPartitions: Seq[HivePartition] = {
val prunedPartitions =
if (conf.metastorePartitionPruning &&
if (sparkSession.sessionState.conf.metastorePartitionPruning &&
partitionPruningPred.nonEmpty) {
// Retrieve the original attributes based on expression ID so that capitalization matches.
val normalizedFilters = partitionPruningPred.map(_.transform {
Expand Down

0 comments on commit 0cc0b42

Please sign in to comment.