Skip to content

Commit

Permalink
[HOT FIX] fix stats functions in the recent patch
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Builds failed due to the recent [merge](apache@b449a1d). This is because [PR#18309](apache#18309) needed update after [this patch](apache@b803b66) was merged.

## How was this patch tested?
N/A

Author: Zhenhua Wang <[email protected]>

Closes apache#18415 from wzhfy/hotfixStats.
  • Loading branch information
wzhfy authored and srowen committed Jun 25, 2017
1 parent b449a1d commit 884347e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import org.apache.spark.sql.execution.joins._
import org.apache.spark.sql.hive.test.TestHiveSingleton
import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.types._
import org.apache.spark.util.Utils

class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleton {

Expand Down Expand Up @@ -131,7 +130,7 @@ class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleto

test("SPARK-21079 - analyze table with location different than that of individual partitions") {
def queryTotalSize(tableName: String): BigInt =
spark.table(tableName).queryExecution.analyzed.stats(conf).sizeInBytes
spark.table(tableName).queryExecution.analyzed.stats.sizeInBytes

val tableName = "analyzeTable_part"
withTable(tableName) {
Expand All @@ -154,7 +153,7 @@ class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleto

test("SPARK-21079 - analyze partitioned table with only a subset of partitions visible") {
def queryTotalSize(tableName: String): BigInt =
spark.table(tableName).queryExecution.analyzed.stats(conf).sizeInBytes
spark.table(tableName).queryExecution.analyzed.stats.sizeInBytes

val sourceTableName = "analyzeTable_part"
val tableName = "analyzeTable_part_vis"
Expand Down

0 comments on commit 884347e

Please sign in to comment.