HeartSaVioR commented on PR #59909: URL: https://github.com/apache/spark/pull/59909#issuecomment-6765874132
> [!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. Both nits are addressed in [10381da78d9](https://github.com/apache/spark/commit/10381da78d99a4c4f375c6ca1522bc933cf9da41), with a reply on each comment. The same commit also fixes how `PreparedExternalLookupJoin` canonicalizes: joins that keep different lookup columns of one type could compare equal. An audit of every plan node in the stack found it, after a related crash in #59910. On the decision challenge: a strategy hint on a lookup join will keep failing. - **An external lookup join isn't just another physical strategy.** It reads current data on each request, while an ordinary stream-static join reads its static side once per micro-batch, so their output can differ. A strategy hint and a lookup join aren't interchangeable, so Spark shouldn't silently pick one of them. - **A lookup join can never honor a strategy hint.** The error says plainly that the lookup side won't be scanned. - **Relaxing later stays possible.** If users find it too strict, the error can become a warning later without breaking anyone. Turning a warning into an error later would break users. The [design doc](https://gist.github.com/HeartSaVioR/0143cdaad3079d1455be8004ee401ec4) records this under P1. -- 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]
