siying commented on code in PR #60068:
URL: https://github.com/apache/spark/pull/60068#discussion_r4637296749
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -1514,8 +1514,33 @@ object PushProjectionThroughUnion extends
Rule[LogicalPlan] {
*/
object ColumnPruning extends Rule[LogicalPlan] {
- def apply(plan: LogicalPlan): LogicalPlan = removeProjectBeforeFilter(
- plan.transformWithPruning(AlwaysProcess.fn, ruleId) {
+ def apply(plan: LogicalPlan): LogicalPlan = {
+ lazy val retainJoinEventTime =
Review Comment:
The local patch rejects the newly possible silent read using the value
schemas already stored in the checkpoint. The regression covers the left-side
replacement through WHERE and the right-side replacement through ON, in join
state formats 2 through 4. The check treats two watermarked timestamps at the
same position as a possible rename. Distinguishing a rename from a replacement
that also moves the watermark would require persisting column identity. Pinning
eligibility would also require defining which edited join conditions can safely
reuse the stored layout.
---
<!-- GITHUB_MCP_FOOTER: This attribution is automatically appended by GitHub
MCP. -->
_This comment was generated with [GitHub MCP](http://go/mcps)._
--
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]