Skip to content

Commit 8a31f2f

Browse files
build: upgrade polars to v1.4
1 parent acaf522 commit 8a31f2f

4 files changed

Lines changed: 88 additions & 45 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ Below is a list of features that we would like to implement or have been request
4444
| Allow DVE to run on Python 3.12+ | 0.8.0 | Yes |
4545
| Upgrade to Pydantic 2.0 | 0.9.0 | Yes |
4646
| Upgrade DuckDB to v1.4 | 0.10.0 | Yes |
47+
| Polars upgrade to v1+ | 0.10.0 | No |
4748
| Uplift Pyspark to 4.0+ | TBA | No |
48-
| Polars upgrade to v1+ | TBA | No |
49-
| DuckDB upgrade to v1.5+ | TBA | No |
50-
| Python 3.13 & 3.14 upgrade | TBA | No |
51-
| Create a more user friendly interface for building and modifying dischema files | TBA | No |
49+
| DuckDB upgrade to v1.5+ | TBA | No |
50+
| Python 3.13 & 3.14 upgrade | TBA | No |
51+
| Create a more user friendly interface for building and modifying dischema files | TBA | No |
52+
| Polars upgrade to v2+ | TBA | No |
5253

5354
If you are interested in getting any of the unreleased features listed above available, then please read the [Contributing](#Contributing) section and then submit us a pull request.
5455

‎poetry.lock‎

Lines changed: 76 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ lxml = "6.1.1"
4242
numpy = "1.26.4"
4343
openpyxl = "3.1.5"
4444
pandas = "2.3.3"
45-
polars = "0.20.31"
45+
polars = "1.44.2"
4646
pyarrow = "23.0.1"
4747
pydantic = "2.13.4"
4848
pyspark = ">=3.5.0,<=3.5.5"
@@ -75,7 +75,7 @@ requests = "2.33.0" # dependency of `moto`
7575
Werkzeug = "3.1.6"
7676
pytest = "9.0.3"
7777
pytest-lazy-fixtures = "1.4.0" # switched from https://github.com/TvoroG/pytest-lazy-fixture as it's no longer supported
78-
xlsx2csv = "0.8.4" # polars requirement
78+
fastexcel = "0.21.0" # polars requirement
7979

8080
[tool.poetry.group.lint]
8181
optional = true

‎tests/test_pipeline/test_spark_pipeline.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def test_error_report_where_report_is_expected( # pylint: disable=redefined-out
420420
report_records = (
421421
pl.read_excel(report_uri)
422422
.filter(pl.col("Data Summary").is_not_null())
423-
.select(pl.col("Data Summary"), pl.col("_duplicated_0"))
423+
.select(pl.col("Data Summary"), pl.col("__UNNAMED__1"))
424424
.rows()
425425
)
426426
assert report_records == [
@@ -482,8 +482,8 @@ def test_error_report_where_report_is_expected( # pylint: disable=redefined-out
482482
"Error Code": "LONG_ORBIT",
483483
"Data Item Submission Name": "orbitalPeriod",
484484
"Errors and Warnings": "Planet has long orbital period",
485-
"Record Index": 1,
486-
"Value": 365.20001220703125,
485+
"Record Index": "1",
486+
"Value": "365.20001220703125",
487487
"ID": None,
488488
"Category": "Bad value",
489489
}
@@ -495,8 +495,8 @@ def test_error_report_where_report_is_expected( # pylint: disable=redefined-out
495495
"Error Code": "STRONG_GRAVITY",
496496
"Data Item Submission Name": "gravity",
497497
"Errors and Warnings": "Planet has too strong gravity",
498-
"Record Index": 1,
499-
"Value": 9.800000190734863,
498+
"Record Index": "1",
499+
"Value": "9.800000190734863",
500500
"ID": None,
501501
"Category": "Bad value",
502502
}

0 commit comments

Comments
 (0)