billy784512 commented on code in PR #59368:
URL: https://github.com/apache/spark/pull/59368#discussion_r4240815660


##########
python/pyspark/sql/tests/pandas/helper/helper_pandas_transform_with_state.py:
##########
@@ -897,6 +897,13 @@ def init(self, handle: StatefulProcessorHandle) -> None:
     def handleInputRows(self, key, rows, timerValues) -> 
Iterator[pd.DataFrame]:
         import datetime
 
+        # Clearing a populated list state removes both its existence and its 
contents.

Review Comment:
   Thanks for the feedback!
   
   I moved the coverage into a dedicated test with its own processors. The test 
verifies existence before and after clear(), empty contents after clearing, and 
reuse across batches.



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