Skip to content

Conversation

@kevinjqliu
Copy link
Contributor

Rationale for this change

Follow up to #2591
Closes #2590

Pydantic released a regression in 2.12.x that was fixed by 2.12.2 and 2.12.3
2.12.2 originally did not work due to incompatible signature that was fixed in #2626
2.12.3 turn the incompatible signature into a deprecation warning.

This PR disallows pydantic 2.12.0 and 2.12.1 and update poetry lock to use pydantic 2.12.3

With #2626 merged, pyiceberg should work with both pydantic 2.12.2 and 2.12.3

Are these changes tested?

Yes, UT.
Tested both with pydantic 2.12.2 and 2.12.3

Are there any user-facing changes?

No

@kevinjqliu
Copy link
Contributor Author

Running CI once for pydantic 2.12.2 and again for 2.12.3

@kevinjqliu kevinjqliu force-pushed the kevinjqliu/update-pydantic-dep branch from 181f2c4 to 16abd4c Compare October 19, 2025 21:07
@kevinjqliu kevinjqliu requested review from Fokko and HonahX October 19, 2025 21:27
Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Interesting, thanks for fixing this @kevinjqliu. 2.12.1 even got yanked: https://pypi.org/project/pydantic/#history

@Fokko Fokko merged commit cc14158 into apache:main Oct 20, 2025
10 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/update-pydantic-dep branch October 20, 2025 15:42
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.

Upstream Pydantic 2.12.0 has a Regression that will break PyIceberg

3 participants