From 83c6232ed1461d1f7290cbad4d0f0e55cf63f190 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:56:55 -0500 Subject: [PATCH] tests: add `sqlp` right join test now that Polars 0.45 supports it in the SQL interface --- tests/test_sqlp.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_sqlp.rs b/tests/test_sqlp.rs index 495005e7a..8cb272d00 100644 --- a/tests/test_sqlp.rs +++ b/tests/test_sqlp.rs @@ -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> = 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| {