zhengruifeng opened a new pull request, #38670:
URL: https://github.com/apache/spark/pull/38670
### What changes were proposed in this pull request?
use `assert_eq` in `PandasOnSparkTestCase` to compare dataframes
### Why are the changes needed?
show detailed error message
before:
```
Traceback (most recent call last):
File
"/home/jenkins/python/pyspark/sql/tests/connect/test_connect_basic.py", line
244, in test_fill_na
self.assertTrue(
AssertionError: False is not true
```
after:
```
AssertionError: DataFrame.iloc[:, 0] (column name="id") are different
DataFrame.iloc[:, 0] (column name="id") values are different (100.0 %)
[index]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[left]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[right]: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Left:
id
id int64
dtype: object
Right:
id
id int64
dtype: object
```
### Does this PR introduce _any_ user-facing change?
No, test only
### How was this patch tested?
existing UT
--
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]