Skip to content

[SPARK-55600][PYTHON][TEST][FOLLOW-UP] Fix test to verify row count preservation with 0-column schema#54962

Closed
Yicong-Huang wants to merge 1 commit intoapache:masterfrom
Yicong-Huang:SPARK-55600-followup
Closed

[SPARK-55600][PYTHON][TEST][FOLLOW-UP] Fix test to verify row count preservation with 0-column schema#54962
Yicong-Huang wants to merge 1 commit intoapache:masterfrom
Yicong-Huang:SPARK-55600-followup

Conversation

@Yicong-Huang
Copy link
Contributor

@Yicong-Huang Yicong-Huang commented Mar 23, 2026

What changes were proposed in this pull request?

Replace it with a non-empty DataFrame so the assertion actually validates row count preservation. Also remove the stale TODO(SPARK-55350) comment.

Why are the changes needed?

The test was not verifying the intended behavior.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing test.

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

No.

…reservation with 0-column schema

The existing test used a 0-row DataFrame to test 0-column conversion, which trivially passed without actually verifying the bug fix from SPARK-55600. This change replaces it with a non-empty DataFrame (3 rows) to properly assert that row count is preserved when converting with an empty schema.

Also removes the stale TODO(SPARK-55350) comment since the fix has already been merged.
@zhengruifeng
Copy link
Contributor

merged to master

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants