You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"SELECT * FROM users |> LEFT JOIN orders USING (user_id, order_date)",
15393
15397
"SELECT * FROM users |> LEFT JOIN orders USING(user_id, order_date)",
15394
15398
);
15395
-
15399
+
15396
15400
// join pipe operator with alias
15397
15401
dialects.verified_query_with_canonical(
15398
15402
"SELECT * FROM users |> JOIN orders o ON users.id = o.user_id",
15399
15403
"SELECT * FROM users |> JOIN orders AS o ON users.id = o.user_id",
15400
15404
);
15401
15405
dialects.verified_stmt("SELECT * FROM users |> LEFT JOIN orders AS o ON users.id = o.user_id");
15402
-
15406
+
15403
15407
// join pipe operator with complex ON condition
15404
15408
dialects.verified_stmt("SELECT * FROM users |> JOIN orders ON users.id = orders.user_id AND orders.status = 'active'");
15405
15409
dialects.verified_stmt("SELECT * FROM users |> LEFT JOIN orders ON users.id = orders.user_id AND orders.amount > 100");
15406
-
15410
+
15407
15411
// multiple join pipe operators
15408
15412
dialects.verified_stmt("SELECT * FROM users |> JOIN orders ON users.id = orders.user_id |> JOIN products ON orders.product_id = products.id");
15409
15413
dialects.verified_stmt("SELECT * FROM users |> LEFT JOIN orders ON users.id = orders.user_id |> RIGHT JOIN products ON orders.product_id = products.id");
15410
-
15414
+
15411
15415
// join pipe operator with other pipe operators
15412
15416
dialects.verified_stmt("SELECT * FROM users |> JOIN orders ON users.id = orders.user_id |> WHERE orders.amount > 100");
15413
15417
dialects.verified_stmt("SELECT * FROM users |> WHERE users.active = true |> LEFT JOIN orders ON users.id = orders.user_id");
0 commit comments