yyanyy commented on code in PR #59662:
URL: https://github.com/apache/spark/pull/59662#discussion_r4365393819


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala:
##########
@@ -79,13 +82,17 @@ object V2ScanRelationPushDown extends Rule[LogicalPlan] 
with PredicateHelper {
    * translation, column pruning, the iterative PartitionPredicate second 
pass) stays owned here.
    * `conditions` are pushed as a single `Filter` directly above the relation; 
the caller decides
    * which of them must come back fully enforced.
+   * `isSubquery` describes the destination plan's scope, absent from this 
synthetic input.
    */
   def rebuildScan(
       relation: DataSourceV2Relation,
       projectList: Seq[NamedExpression],
-      conditions: Seq[Expression]): Option[DataSourceV2ScanRelation] = {
+      conditions: Seq[Expression],
+      isSubquery: Boolean): Option[DataSourceV2ScanRelation] = {

Review Comment:
   Since this is an internal optimizer helper, and all in-tree callers supply 
the scope explicitly, I think it's better to make it explicit to avoid silent 
incorrect default



-- 
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]

Reply via email to