yyanyy commented on code in PR #57487:
URL: https://github.com/apache/spark/pull/57487#discussion_r3687018004
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala:
##########
@@ -1199,6 +1234,30 @@ case class ScanBuilderHolder(
case class V1ScanWrapper(
v1Scan: V1Scan,
handledFilters: Seq[sources.Filter],
- pushedDownOperators: PushedDownOperators) extends Scan {
+ pushedDownOperators: PushedDownOperators) extends Scan with
SupportsReportStatistics {
override def readSchema(): StructType = v1Scan.readSchema()
+
+ override def estimateStatistics(): V2Statistics = {
+ v1Scan match {
+ case r: SupportsReportStatistics => r.estimateStatistics()
+ case _ => new V2Statistics {
+ override def sizeInBytes(): java.util.OptionalLong =
java.util.OptionalLong.empty()
Review Comment:
removed and moved to the import list
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]