jingz-db commented on code in PR #50686: URL: https://github.com/apache/spark/pull/50686#discussion_r2056951706
########## 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: Can we have a simple assertion here about map_state is empty after clear? -- 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