Skip to content

[SPARK-59093][PS][TEST][FOLLOWUP] Skip floor division overflow tests on old NumPy - #58732

Open
Spenserrrr wants to merge 1 commit into
apache:masterfrom
Spenserrrr:floordiv-min-deps
Open

[SPARK-59093][PS][TEST][FOLLOWUP] Skip floor division overflow tests on old NumPy#58732
Spenserrrr wants to merge 1 commit into
apache:masterfrom
Spenserrrr:floordiv-min-deps

Conversation

@Spenserrrr

@Spenserrrr Spenserrrr commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Move integer floor-division overflow cases into dedicated tests and skip them with NumPy below 1.24. Keep the other floor-division cases running, including the non-overflowing minimum-int64 case.

Why are the changes needed?

Minimum-dependency CI fails because pandas with NumPy 1.23.2 returns zero for pd.Series([-(2**63)]) // -1, while pandas-on-Spark returns minimum int64. NumPy documents this overflow result as undefined before 1.24.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Ran the Classic and Connect floor-division tests with minimum and current dependencies, and an overflow probe reproducing the original comparison failures.

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

Generated-by: Codex (GPT-6)

@Spenserrrr
Spenserrrr marked this pull request as ready for review September 11, 2026 05:16
@Spenserrrr

Copy link
Copy Markdown
Contributor Author

Hi @zhengruifeng @gaogaotiantian! This PR fixes the minimum-dependency CI failure by skipping the integer floor division overflow tests on NumPy < 1.24. Could you take a look when you have time? Thanks!
cc @Yicong-Huang

@uros-b

uros-b commented Sep 11, 2026

Copy link
Copy Markdown
Member

Thank you @Spenserrrr and @gaogaotiantian!

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