From 93b3a19dcf287dc6e80710e385a6afc68f09e32b Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Mon, 18 Feb 2019 12:36:17 -0800 Subject: [PATCH] NETFLIX-BUILD: Add TableV2Relation.statistics for simple plans. --- .../sql/execution/datasources/v2/DataSourceV2Relation.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala index 644d8058a377a..da911f006d74c 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala @@ -197,6 +197,8 @@ case class TableV2Relation( def newReader(): DataSourceReader = table.createReader(options, None) + override def statistics: Statistics = computeStats(output, Seq.empty) + /** * Used to return statistics when filters and projection are available. */