Skip to content
Snippets Groups Projects
Commit 884347e1 authored by Zhenhua Wang's avatar Zhenhua Wang Committed by Sean Owen
Browse files

[HOT FIX] fix stats functions in the recent patch

## What changes were proposed in this pull request?

Builds failed due to the recent [merge](https://github.com/apache/spark/commit/b449a1d6aa322a50cf221cd7a2ae85a91d6c7e9f). This is because [PR#18309](https://github.com/apache/spark/pull/18309) needed update after [this patch](https://github.com/apache/spark/commit/b803b66a8133f705463039325ee71ee6827ce1a7) was merged.

## How was this patch tested?
N/A

Author: Zhenhua Wang <wzh_zju@163.com>

Closes #18415 from wzhfy/hotfixStats.
parent b449a1d6
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......@@ -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) {
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment