Skip to content

[SPARK-57218][PYTHON] Pin pandas and pandas stub version for lint image#56289

Closed
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:pin-pandas-version-lint
Closed

[SPARK-57218][PYTHON] Pin pandas and pandas stub version for lint image#56289
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:pin-pandas-version-lint

Conversation

@gaogaotiantian
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Pin pandas and pandas-stub image for lint image.

Why are the changes needed?

CI is failing, but we don't support pandas 3 now. We pin pandas version on our docker image to match the dev env.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

mypy passed locally. Pending CI.

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

No.

gaogaotiantian added a commit that referenced this pull request Jun 3, 2026
### What changes were proposed in this pull request?

Pin pandas and pandas-stub image for lint image.

### Why are the changes needed?

CI is failing, but we don't support pandas 3 now. We pin pandas version on our docker image to match the dev env.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

mypy passed locally. Pending CI.

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

No.

Closes #56289 from gaogaotiantian/pin-pandas-version-lint.

Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com>
(cherry picked from commit af55029)
Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com>
gaogaotiantian added a commit that referenced this pull request Jun 3, 2026
### What changes were proposed in this pull request?

Pin pandas and pandas-stub image for lint image.

### Why are the changes needed?

CI is failing, but we don't support pandas 3 now. We pin pandas version on our docker image to match the dev env.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

mypy passed locally. Pending CI.

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

No.

Closes #56289 from gaogaotiantian/pin-pandas-version-lint.

Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com>
(cherry picked from commit af55029)
Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com>
@gaogaotiantian
Copy link
Copy Markdown
Contributor Author

Merged to master, branch-4.x, branch-4.2. (versions below 4.1 already has pinned stub).

@LuciferYang and @sarutak I merged this fast to fix the blocking CI failure. Thank you for noticing this and your fix proposal. Let me know if you think we should do something different.

@LuciferYang
Copy link
Copy Markdown
Contributor

Thank you @gaogaotiantian , do we only need to pin these dependencies in lint image?

@gaogaotiantian
Copy link
Copy Markdown
Contributor Author

Thank you @gaogaotiantian , do we only need to pin these dependencies in lint image?

pandas-stubs is only used in lint image, but it might be helpful to also pin it in requirements.txt to keep consistency. pandas is pinned for our CI already because we don't support pandas 3.

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