Skip to content

Commit

Permalink
Bump polars from 1.9.0 to 1.10.0 (#1667)
Browse files Browse the repository at this point in the history
* Bump polars from 1.9.0 to 1.10.0

Bumps [polars](https://github.com/pola-rs/polars) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/pola-rs/polars/releases)
- [Commits](pola-rs/polars@py-1.9.0...py-1.10.0)

---
updated-dependencies:
- dependency-name: polars
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix polars column issue.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Călina Cenan <calina@cenan.net>
  • Loading branch information
dependabot[bot] and calina-c authored Oct 21, 2024
1 parent a1ac9ef commit 2ffabd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions pdr_backend/lake_info/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,17 @@ def validate_lake_tables_no_duplicates(self) -> List[str]:

query = query_duplicate_rows.replace("target_table", table_name)
rows_df: pl.DataFrame = self.db.query_data(query)
duplicate_rows = duplicate_rows.vstack(rows_df)
duplicate_rows = (
duplicate_rows.vstack(rows_df)
if duplicate_rows.shape[0] > 0
else rows_df
)

duplicate_summary = duplicate_summary.vstack(summary_df)
duplicate_summary = (
duplicate_summary.vstack(summary_df)
if duplicate_summary.shape[0] > 0
else summary_df
)
violations.append(f"Table {table_name} has duplicates.")

if duplicate_summary.shape[0] == 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"pandas==2.2.3",
"pathlib",
"plotly==5.24.1",
"polars==1.9.0",
"polars==1.10.0",
"polars[timezone]",
"pyarrow==17.0.0",
"pylint==3.3.1",
Expand Down

0 comments on commit 2ffabd4

Please sign in to comment.