xumingming commented on PR #60671:
URL: https://github.com/apache/spark/pull/60671#issuecomment-7058891864

   Thanks for the thorough review, @peter-toth!
   
   1. The guard now walks subqueries nested inside the predicate's subquery, 
and ignores CTE definitions that subquery itself contains.
   2. A CTE id shared by two distinct definitions is skipped for both predicate 
pushdown and column pruning.
   3. A second visit keeps the first precedence, so an earlier sibling is not 
treated as a forward reference.
   4. New tests pin a nested definition taking a predicate that reads an outer 
CTE, and the earlier-sibling pushdown a repeated visit must keep.
   5. The assertions collect `RepartitionOperation` bodies, which is what 
remains after `ReplaceCTERefWithRepartition`.
   6. A non-deterministic CTE referenced twice covers the crash without 
`MATERIALIZED`.
   7. The affected versions are already 4.0.5, 4.1.4, 4.2.1, and 4.3.0.
   


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