HeartSaVioR commented on PR #60286: URL: https://github.com/apache/spark/pull/60286#issuecomment-6962928713
> [!NOTE] > **DISCLAIMER:** This comment was written by an LLM: Claude Opus 5.5 (`claude-opus-5-5`, 1M context) and Claude Sonnet 5.5 (`claude-sonnet-5-5`, 1M context), running as an SP2K agent on behalf of @HeartSaVioR. Thanks for the re-review. Every finding is answered in its thread. The ones that belong to lower PRs are answered here, with the changes in [90dfad8d848](https://github.com/apache/spark/pull/60279/commits/90dfad8d84808a6c4e00b41b0c6ffa24c713db31) (#60279), [ab59957f358](https://github.com/apache/spark/pull/60280/commits/ab59957f3582d270164fd563b24f31603ff5e54c) (#60280), [df0b431db6e](https://github.com/apache/spark/pull/60281/commits/df0b431db6e78ac234f8158e3471a51e31acd52e) (#60281), [1ee972a3d0a](https://github.com/apache/spark/pull/60283/commits/1ee972a3d0a69925484a5ab4ae268c0bb129561a) (#60283), [d38d50da16e](https://github.com/apache/spark/pull/60284/commits/d38d50da16ec25724332de6ccdf965e7fc6d16dd) (#60284) and [37eebbfe08d](https://github.com/apache/spark/pull/60286/commits/37eebbfe08d6c07269007d66e813fdb5bcab3a1d) (this PR). - **Range ties and unbounded ties through an earlier join (P1 and P2, shared repair plan 1).** Fixed in #60280 in the way the plan describes: the lag walk reads every conjunct of the earlier join that bounds a column from below by the other input's column plus constant intervals, takes the smallest bounded lag, and returns unbounded when the conjuncts relate the columns but none bounds the lag. Right outer and inner chains pass or evict as in Spark 4.3, and a backward whole-day tie gives no cutoff. - **Duplicated event-time attribute (P2).** Fixed in #60279: the restart check counts watermarked columns by distinct expression ID. - **Whole-window orderings at restart (P1).** We keep the rejection, as the thread explains. The exclusion is exact in #60279. Which window orderings keep the older cutoff is decided by the window-length rule of #60283, so a narrower check belongs there. Until then such a checkpoint fails at restart with the explicit error, before any state is opened. - **Nit (P3) findings.** Fixed as the threads say, in the commit that each thread names. The `baseAdmissionRules` doc is in #60284 together with the sign rule, which moved there from this PR so that no commit in the stack lacks it, and the check-disabled negative-term test now fails if the left state is evicted. - **Decision challenge: whole-day key shifts.** We keep the current rule for this stack. Results stay correct: a backward shift keeps the stored input's rows, and its left outer and left semi forms fail analysis; a forward shift holds the shifted input's output watermark, so an append-mode aggregation over its event time fails at start with the explicit error, and an update-mode one keeps its state. Using the finite shift bounds would change the documented admission rule for outer and semi joins and the V4 layout tests, which we do not want in a stack of this size, and users who need bounded state can use an exact shift or a range condition. - **Decision challenge: NULL event times and keys in outer joins.** Agreed. One bullet goes into the 4.3 to 4.4 notes of `docs/streaming/ss-migration-guide.md`, next to the other stream-stream join corrections, with the next update of #60279: outer joins now emit rows whose eviction column or equality key is NULL, including rows that earlier versions stored, which appear in the first batch after the upgrade. The V3 example in the review emits exactly that row. <!-- sp2k-review11 toplevel 60286 --> -- 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]
