A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore: update polars and revert test changes (#5987)
Shahmir Varqha1ebdf3dd87b1
diff --git a/pyproject.toml b/pyproject.tomlindex 3838aa0e96..9408c53c5a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -243,7 +243,7 @@ extra-dependencies = ["pyarrow_hotfix","altair>=5.4.0","plotly>=5.14.0",- "polars>=1.32.0",+ "polars>=1.32.2","sqlglot>=23.4","sqlalchemy>=2.0.40","pyiceberg>=0.9.0",diff --git a/tests/_plugins/ui/_impl/tables/test_narwhals.py b/tests/_plugins/ui/_impl/tables/test_narwhals.pyindex 8ed46430b0..e21bd59e5b 100644--- a/tests/_plugins/ui/_impl/tables/test_narwhals.py+++ b/tests/_plugins/ui/_impl/tables/test_narwhals.py@@ -934,9 +934,7 @@ def test_get_summary_all_types() -> None:"string": ["a", "b", "b", "c", "d", "d", "e"],"boolean": [True, False, False, True, False, False, True],},- # TODO: add back for polars and lazy-polars, they are currently breaking with- # a change to their hist() api ('break-point' has been renamed to 'breakpoint')- exclude=["ibis", "duckdb", "polars", "lazy-polars"],+ exclude=["ibis", "duckdb"],strict=False,),)@@ -1027,9 +1025,7 @@ def _round_bin_values(bin_values: list[BinValue]) -> list[BinValue]:datetime.date(2021, 1, 1),],},- # TODO: add back for polars and lazy-polars, they are currently breaking with- # a change to their hist() api ('break-point' has been renamed to 'breakpoint')- exclude=["ibis", "duckdb", "polars", "lazy-polars"],+ exclude=["ibis", "duckdb"],),)class TestGetBinValuesTemporal:diff --git a/tests/_plugins/ui/_impl/tables/test_polars_table.py b/tests/_plugins/ui/_impl/tables/test_polars_table.pyindex 31a00c835f..966614a8f7 100644--- a/tests/_plugins/ui/_impl/tables/test_polars_table.py+++ b/tests/_plugins/ui/_impl/tables/test_polars_table.py@@ -929,10 +929,7 @@ class TestPolarsTableManagerFactory(unittest.TestCase):assert result.get_num_rows() == 5assert result.data["A"].to_list() == [10, 11, 12, 13, 14]- # Warning is about lazy-polars when collecting column names- assert len(recorded_warnings) == 1, [- str(w.message) for w in recorded_warnings- ]+ assert len(recorded_warnings) == 0def test_to_json_bigint(self) -> None:import polars as pldiff --git a/tests/_plugins/ui/_impl/test_table.py b/tests/_plugins/ui/_impl/test_table.pyindex 343f842fe2..658edb8257 100644--- a/tests/_plugins/ui/_impl/test_table.py+++ b/tests/_plugins/ui/_impl/test_table.py@@ -1829,10 +1829,7 @@ def test_lazy_dataframe() -> None:json_data = json.loads(search_response.data)assert len(json_data) == num_rows- # Warning comes from search- assert len(recorded_warnings) == 1, [- str(w.message) for w in recorded_warnings- ]+ assert len(recorded_warnings) == 0# Select rowsvalue = table._convert_value([])