HeartSaVioR commented on PR #60198:
URL: https://github.com/apache/spark/pull/60198#issuecomment-6756317204

   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM, Claude Opus 5.5 
(`claude-opus-5-5`, 1M context), posting on behalf of @HeartSaVioR.
   
   Thanks for the review. Every inline point is addressed in 
[0c20a33fc99](https://github.com/apache/spark/commit/0c20a33fc9915847ea1418b0f9195b0dcc7a3b9a),
 with a reply on each comment.
   
   **Constant keys (your first two comments).** Constant comparisons now move 
onto the lookup side exactly as for an ordinary join, and lookup planning also 
offers them as key candidates. So a query that plans without these rules also 
plans with them, including for a source that needs a constant as part of its 
key.
   
   **A key written in WHERE.** The AI review also found that `FROM s, t WHERE 
s.id = t.id` failed with `MISSING_JOIN_CONDITION`, while `JOIN ... ON TRUE 
WHERE s.id = t.id` planned. Both now plan, as for an ordinary join. A join that 
still has no condition after pushdown fails, from `start()`. Excluding 
`PushDownPredicates` can then make such a query fail to plan, because a lookup 
join can't run without a key, and the description says so.
   


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