Skip to content

Commit

Permalink
tests: add sqlp right join test
Browse files Browse the repository at this point in the history
now that Polars 0.45 supports it in the SQL interface
  • Loading branch information
jqnatividad committed Dec 8, 2024
1 parent 9c329e3 commit 83c6232
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ sqlp_test!(
}
);

sqlp_test!(
sqlp_right_join,
|wrk: Workdir, mut cmd: process::Command| {
cmd.arg("select * from cities right join places on cities.city = places.city");
let got: Vec<Vec<String>> = wrk.read_stdout(&mut cmd);
let expected = make_rows(
false,
vec![
svec!["Boston", "MA", "Boston", "Logan Airport"],
svec!["Boston", "MA", "Boston", "Boston Garden"],
svec!["Buffalo", "NY", "Buffalo", "Ralph Wilson Stadium"],
svec!["", "", "Orlando", "Disney World"],
],
);
assert_eq!(got, expected);
}
);

sqlp_test!(
sqlp_join_outer_left,
|wrk: Workdir, mut cmd: process::Command| {
Expand Down

0 comments on commit 83c6232

Please sign in to comment.