Skip to content

Commit 7e23975

Browse files
authored
Fix StatisticsManagerSuite (#2612)
1 parent d9afb8c commit 7e23975

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/test/scala/org/apache/spark/sql/statistics/StatisticsManagerSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class StatisticsManagerSuite extends BaseTiSparkTest {
2626

2727
// fix issue: https://github.com/pingcap/tispark/issues/2573
2828
test("Physical Plan should print EstimatedCount") {
29+
// analyze table to avoid stats not be loaded
30+
tidbStmt.execute("analyze table tpch_test.LINEITEM")
2931
val df = spark
3032
.sql("""select * from tidb_catalog.tpch_test.LINEITEM
3133
|""".stripMargin)

0 commit comments

Comments
 (0)