HeartSaVioR commented on code in PR #60707:
URL: https://github.com/apache/spark/pull/60707#discussion_r4642488393


##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingStatefulOperatorNullabilityDriftSuite.scala:
##########
@@ -35,7 +35,8 @@ import org.apache.spark.sql.types.{ArrayType, DataType, 
MapType, StructType}
  * Driver: `PropagateEmptyRelation` drops empty `Union` branches without a 
streaming
  * guard, so the surviving branch's per-column nullability becomes the Union's
  * nullability and propagates into a stateful operator above -- across 
microbatches or
- * restarts.
+ * restarts. New checkpoints keep the branches (SPARK-62057), so the Union 
scenarios write

Review Comment:
   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM: Claude Opus 5.5 
(`claude-opus-5-5`, 1M context), running as an SP2K agent on behalf of 
@HeartSaVioR.
   
   Fixed all three. The header now says the branches are dropped only with 
`spark.sql.optimizer.propagateEmptyRelationCanPruneStreamingUnionChildren` set 
to true, which checkpoints written before 
[SPARK-62057](https://issues.apache.org/jira/browse/SPARK-62057) get because 
their offset logs have no entry for it, and it names the scenarios that set it 
(those through `runUnionBranchDropRestart`, the Complete-mode scenario and the 
existing-query scenario). The `withUnionBranchDrop` comment says such 
checkpoints have no entry and are restored with pruning on.



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