asl3 opened a new pull request, #41606: URL: https://github.com/apache/spark/pull/41606
### What changes were proposed in this pull request? This PR implements an `assert_df_equality` util function to test for dataframe equality in either pandas or PySpark dataframes. SPIP: https://docs.google.com/document/d/1OkyBn3JbEHkkQgSQ45Lq82esXjr9rm2Vj7Ih_4zycRc/edit#heading=h.f5f0u2riv07v ### Why are the changes needed? This function simplifies the PySpark testing process for users. The `assert_df_equality` function can take either PySpark or pandas dataframes and assert whether they are equal. ### Does this PR introduce _any_ user-facing change? Yes, this PR introduces the user-facing util function `assert_df_equality`. Previously, there was no provided spark function to test for dataframe equality. This new function takes either PySpark or pandas dataframes and calls the appropriate helper function to determine equality. ### How was this patch tested? Added tests to `runtime/python/pyspark/sql/tests/test_utils.py` -- 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]
