GitHub user cloud-fan opened a pull request: https://github.com/apache/spark/pull/21111
[SPARK-23877][SQL][followup] use PhysicalOperation to simplify the handling of Project and Filter over partitioned relation ## What changes were proposed in this pull request? `PhysicalOperation` can collect Project and Filters over a certain plan and substitute the alias with the original attributes in the bottom plan. We can use it in `OptimizeMetadataOnlyQuery` rule to handle the Project and Filter over partitioned relation. ## How was this patch tested? existing test You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloud-fan/spark refactor Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21111.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21111 ---- commit c3a61902bc3db535c2b77960c0f9c32a1bf7337f Author: Wenchen Fan <wenchen@...> Date: 2018-04-20T04:55:15Z use PhysicalOperation to simplify the handling of Project and Filter over partitioned relation ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org