Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/19252#discussion_r139569666 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala --- @@ -261,6 +261,11 @@ class StatisticsCollectionSuite extends StatisticsCollectionTestBase with Shared assert(fetched1.get.sizeInBytes == 0) assert(fetched1.get.colStats.size == 2) + // compute stats based on the catalog table metadata and + // put the relation into the catalog cache + sql(s"EXPLAIN COST SELECT DISTINCT * FROM $table") --- End diff -- Could you replace the usage of `EXPLAIN COST` by ```Scala // Table lookup will make the table cached. spark.table(table) ```
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org