anishshri-db commented on code in PR #50686:
URL: https://github.com/apache/spark/pull/50686#discussion_r2056957443


##########
python/pyspark/sql/tests/pandas/helper/helper_pandas_transform_with_state.py:
##########
@@ -972,6 +972,7 @@ def handleInputRows(self, key, rows, timerValues) -> 
Iterator[pd.DataFrame]:
         assert next(map_iter)[1] == (value2,)
         self.map_state.removeKey(key1)
         assert not self.map_state.containsKey(key1)
+        self.map_state.clear()

Review Comment:
   +1 - can we check for some invariant here (before/after the change) ?



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to