urosstan-db opened a new pull request, #47443: URL: https://github.com/apache/spark/pull/47443
### What changes were proposed in this pull request? Add new interface (`ExternallyPlannedV1Scan`) for `V1Scan` which will prevent `DataSourceV2Strategy` to do planning of optimized scan node. ### Why are the changes needed? Sometimes, we want to extend Spark with new strategies (it can be done by adding strategy to `extraStrategies` property of `SparkSession`), and we want that strategy do planning of `DataSourceV2ScanRelation` node. Even extra strategies are applied before other strategies (and have extra priority), often those strategies tries to do some push downs (or optimization) with `Filter` and `Project` logical plans. If that push down fails, then `DataSourceV2Strategy` will do planning, because it can handle Filter/Project for every expression. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? No tests made, existing tests covers we did not make regression for current planning logic. ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
