Skip to content

Commit b4ba86b

Browse files
authored
Pin pydantic<2.12 in ci/test_cudf_polars_polars_tests.sh (#20200)
pydantic made a release today, and pyiceberg was relying on [non-documented](https://docs.pydantic.dev/latest/api/pydantic_core_schema/#pydantic_core.core_schema.ValidationInfo) functionality that was removed ```python AttributeError: 'pydantic_core._pydantic_core.ValidationInfo' object has no attribute 'current_schema_id' ``` So I think it's sufficient just to pin pydantic in our cudf_polars polars test job Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #20200
1 parent e974503 commit b4ba86b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/test_cudf_polars_polars_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ sed -i '/^polars-cloud$/d' polars/py-polars/requirements-dev.txt
3333
# Deltalake release 1.0.0 contains breaking changes for Polars. So we're adding an upper pinning temporarily
3434
# until things get resolved. Tracking Issue: https://github.com/pola-rs/polars/issues/22999
3535
sed -i 's/^deltalake>=0.15.0.*/deltalake>=0.15.0,<1.0.0/' polars/py-polars/requirements-dev.txt
36+
# pyiceberg depends on a non-documented attribute of pydantic.
37+
# AttributeError: 'pydantic_core._pydantic_core.ValidationInfo' object has no attribute 'current_schema_id'
38+
sed -i 's/^pydantic>=2.0.0.*/pydantic>=2.0.0,<2.12.0/' polars/py-polars/requirements-dev.txt
3639
rapids-pip-retry install -r polars/py-polars/requirements-dev.txt -r polars/py-polars/requirements-ci.txt
3740

3841
# shellcheck disable=SC2317

0 commit comments

Comments
 (0)