beliefer commented on code in PR #49961: URL: https://github.com/apache/spark/pull/49961#discussion_r1976389689
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/python/PythonScanBuilder.scala: ########## @@ -25,6 +27,40 @@ class PythonScanBuilder( ds: PythonDataSourceV2, shortName: String, outputSchema: StructType, - options: CaseInsensitiveStringMap) extends ScanBuilder { - override def build(): Scan = new PythonScan(ds, shortName, outputSchema, options) + options: CaseInsensitiveStringMap) + extends ScanBuilder + with SupportsPushDownFilters { Review Comment: Because Python data source is new, we should use SupportsPushDownV2Filters first. ########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/python/PythonScanBuilder.scala: ########## @@ -25,6 +27,40 @@ class PythonScanBuilder( ds: PythonDataSourceV2, shortName: String, outputSchema: StructType, - options: CaseInsensitiveStringMap) extends ScanBuilder { - override def build(): Scan = new PythonScan(ds, shortName, outputSchema, options) + options: CaseInsensitiveStringMap) + extends ScanBuilder + with SupportsPushDownFilters { Review Comment: Because Python data source is new, we should use `SupportsPushDownV2Filters` first. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org