You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2024/04/24 04:47:52 UTC

[PR] [MINOR][PYTHON][TESTS] Make `test_creation_index` deterministic [spark]

zhengruifeng opened a new pull request, #46200:
URL: https://github.com/apache/spark/pull/46200

   ### What changes were proposed in this pull request?
   Make `test_creation_index` deterministic
   
   
   ### Why are the changes needed?
   it may fail in some env
   ```
   FAIL [16.261s]: test_creation_index (pyspark.pandas.tests.frame.test_constructor.FrameConstructorTests.test_creation_index)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/jenkins/python/pyspark/testing/pandasutils.py", line 91, in _assert_pandas_equal
       assert_frame_equal(
     File "/databricks/python3/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 1257, in assert_frame_equal
       assert_index_equal(
     File "/databricks/python3/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 407, in assert_index_equal
       raise_assert_detail(obj, msg, left, right)
     File "/databricks/python3/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 665, in raise_assert_detail
       raise AssertionError(msg)
   AssertionError: DataFrame.index are different
   DataFrame.index values are different (40.0 %)
   [left]:  Int64Index([2, 3, 4, 6, 5], dtype='int64')
   [right]: Int64Index([2, 3, 4, 5, 6], dtype='int64')
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   no. test only
   
   
   ### How was this patch tested?
   ci
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   no


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


Re: [PR] [SPARK-47969][PYTHON][TESTS] Make `test_creation_index` deterministic [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #46200:
URL: https://github.com/apache/spark/pull/46200#issuecomment-2074134861

   Merged to master for Apache Spark 4.0.0.


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


Re: [PR] [SPARK-47969][PYTHON][TESTS] Make `test_creation_index` deterministic [spark]

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #46200:
URL: https://github.com/apache/spark/pull/46200#issuecomment-2074150375

   thank you @dongjoon-hyun so much


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


Re: [PR] [SPARK-47969][PYTHON][TESTS] Make `test_creation_index` deterministic [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #46200: [SPARK-47969][PYTHON][TESTS] Make `test_creation_index` deterministic
URL: https://github.com/apache/spark/pull/46200


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