You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HeartSaVioR (via GitHub)" <gi...@apache.org> on 2024/11/09 02:09:22 UTC

Re: [PR] [SPARK-50275][SS][PYTHON] Enable test_pandas_transform_with_state unit test [spark]

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


##########
python/pyspark/sql/tests/pandas/test_pandas_transform_with_state.py:
##########
@@ -109,6 +109,7 @@ def _test_transform_with_state_in_pandas_basic(
         input_path = tempfile.mkdtemp()
         self._prepare_test_resource1(input_path)
         if not single_batch:
+            time.sleep(10)

Review Comment:
   Is this to ensure that created files will have ordering by created timestamp? Is it needed to be such a huge, 10 seconds? 
   
   I see now the test will be spending 10s of seconds just for this. We had put some efforts of reducing test execution time and I don't want to defer the effort to the future. Have we tried this by half (5) or even 1-2 seconds?



-- 
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-unsubscribe@spark.apache.org

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


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