Skip to content

[SPARK-50465][PYTHON][TESTS] Use assertDataFrameEqual in pyspark.sql.tests.test_group and test_readwriter#49023

Closed
xinrong-meng wants to merge 1 commit into
apache:masterfrom
xinrong-meng:impr_test_group
Closed

[SPARK-50465][PYTHON][TESTS] Use assertDataFrameEqual in pyspark.sql.tests.test_group and test_readwriter#49023
xinrong-meng wants to merge 1 commit into
apache:masterfrom
xinrong-meng:impr_test_group

Conversation

@xinrong-meng
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Use assertDataFrameEqual in pyspark.sql.tests.test_group and test_readwriter

Why are the changes needed?

assertDataFrameEqual is explicitly built to handle DataFrame-specific comparisons, including schema.

So we propose to replace assertEqual with assertDataFrameEqual

Part of https://issues.apache.org/jira/browse/SPARK-50435.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @xinrong-meng .
Merged to master for Apache Spark 4.0.0 on February 2025.

@dongjoon-hyun
Copy link
Copy Markdown
Member

BTW, how many test PRs are you going to open, @xinrong-meng ?

Do you think we can do that in a single batch instead of many small ones like this?

@xinrong-meng
Copy link
Copy Markdown
Member Author

Thanks @dongjoon-hyun , certainly, I will handle the rest in a single batch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants