Skip to content

Commit

Permalink
python polars 0.13.62 (#4294)
Browse files Browse the repository at this point in the history
* join expression argument fix

* python polars 0.13.62
  • Loading branch information
ritchie46 committed Aug 6, 2022
1 parent 093d55c commit 09bb034
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions polars/polars-lazy/src/logical_plan/alp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,9 @@ impl<'a> ALogicalPlanBuilder<'a> {

let right_names: PlHashSet<_> = right_on
.iter()
.map(|e| match self.expr_arena.get(*e) {
AExpr::Alias(_, name) => name.clone(),
AExpr::Column(name) => name.clone(),
_ => panic!("could not determine join column names"),
.map(|e| {
aexpr_to_root_column_name(*e, self.expr_arena)
.expect("could not determine join column names")
})
.collect();

Expand Down
2 changes: 1 addition & 1 deletion py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-polars"
version = "0.13.61"
version = "0.13.62"
authors = ["ritchie46 <ritchie46@gmail.com>"]
documentation = "https://pola-rs.github.io/polars/py-polars/html/reference/index.html"
edition = "2021"
Expand Down
3 changes: 3 additions & 0 deletions py-polars/tests/test_joins.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,6 @@ def test_join_on_cast() -> None:
"row_nr": [1, 2, 3, 5],
"a": [-2, 3, 3, 10],
}
assert df_a.lazy().join(
df_b.lazy(), on=pl.col("a").cast(pl.Int64)
).collect().to_dict(False) == {"row_nr": [1, 2, 3, 5], "a": [-2, 3, 3, 10]}

0 comments on commit 09bb034

Please sign in to comment.