szehon-ho commented on PR #60147: URL: https://github.com/apache/spark/pull/60147#issuecomment-6809294709
Addressed the latest review in cc5c734ca63, including declaration binding after pushed joins/aggregates, both documentation fixes, and regressions for mixed-field conjuncts and nested residual remapping. All 146 focused tests and SQL/Catalyst main and test Scalastyle checks pass. On pushed joins: this change lets declaring tables continue to use join pushdown, including when the other input has a column whose name collides with a declared nested root. Declarations are bound by the original column identity. The current join build path discards inferred-filter metadata and does not add adjustment predicates, so it has no such redundant filters to remove from the joined output. Extending the optimization after a pushed join is possible, starting with inner joins. Spark would need to carry each input's declarations and inferred predicates through the join's output aliases, bind them to the joined output by provenance, and record the predicates that the source enforces there. Inner joins preserve facts from both inputs. For outer joins, predicates from the null-supplying side can become false on unmatched output rows (for example, an inferred IS NOT NULL), so they cannot simply be added as output filters. The first extension could retain only facts from the preserved side of an outer join; supporting other facts requires proving they also hold for the null-extended rows. -- 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]
