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

   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM, Claude Opus 5.5 
(`claude-opus-5-5`, 1M context), posting on behalf of @HeartSaVioR.
   
   Answers to the [AI 
review](https://github.com/apache/spark/pull/59910#pullrequestreview-5837736639)
 of 4bc87c4843a. Every finding is addressed in 
[232975c8fc5](https://github.com/apache/spark/commit/232975c8fc562f2f5e2568c72319ee3f775b171b),
 with a reply on each inline comment.
   - **Rows that cannot match still take slots in inner-join batches.** Fixed. 
An inner join now batches only the rows that can match: a row that fails the 
stream condition, or has a null key that isn't null-safe, is skipped without 
copying and counted only as an input row. An ordinary inner join filters such 
rows out before the join, too. Left semi joins do the same from #60055, while 
left outer and left anti joins keep these rows, because they emit them. With 
your example, the request count drops to one.
   - **The task-end close is described in six places.** The rule is now stated 
once, in the `ExternalLookupReader` Javadoc, and the other places refer to it 
(see the inline thread).
   
   Also in this round:
   - **The startup check now runs in the query thread,** before any source is 
created, instead of in the thread that calls `start()`. A planning error still 
stops the query at once, even before any data arrives, but it reaches the user 
through `awaitTermination()`, `StreamingQuery.exception` and the listener's 
`QueryTerminatedEvent`. A connector planning call that hangs now blocks the 
query thread, never the user's code.
   - **A crash, found by a new test with streaming filter pushdown 
(SPARK-60926) on.** A streaming aggregate over a lookup join with a filter 
above it crashed during exchange reuse, because the physical node had no 
canonicalization of its own. It now normalizes its lookup-side attributes. A 
unit test and end-to-end aggregate tests cover it.
   - **The stack is rebased onto the latest master,** which now includes 
SPARK-60926.
   


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