jingz-db commented on code in PR #49560:
URL: https://github.com/apache/spark/pull/49560#discussion_r1953445803


##########
python/pyspark/sql/tests/pandas/test_pandas_transform_with_state.py:
##########
@@ -270,14 +272,10 @@ def check_results(batch_df, _):
     # test list state with ttl has the same behavior as list state when state 
doesn't expire.
     def test_transform_with_state_in_pandas_list_state_large_ttl(self):
         def check_results(batch_df, batch_id):
-            if batch_id == 0:
-                assert set(batch_df.sort("id").collect()) == {
-                    Row(id="0", countAsString="2"),
-                    Row(id="1", countAsString="2"),
-                }
-            else:

Review Comment:
   Trigger.AvailableNow will also requires us to explicitly stop the query 
inside the sink if `noDataBatch` is not enabled. See discussion we had 
previously on the chaining of operator PR: 
https://github.com/apache/spark/pull/48124#discussion_r1836135704



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