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
dialects.verified_stmt("SELECT * FROM users |> INTERSECT BY NAME (SELECT * FROM admins), (SELECT * FROM guests)");
15236
15236
dialects.verified_stmt("SELECT * FROM users |> INTERSECT DISTINCT BY NAME (SELECT * FROM admins), (SELECT * FROM guests)");
15237
15237
15238
+
// except pipe operator (BigQuery requires DISTINCT modifier for EXCEPT)
15239
+
dialects.verified_stmt("SELECT * FROM users |> EXCEPT DISTINCT (SELECT * FROM admins)");
15240
+
15241
+
// except pipe operator with BY NAME modifier
15242
+
dialects.verified_stmt("SELECT * FROM users |> EXCEPT DISTINCT BY NAME (SELECT * FROM admins)");
15243
+
15244
+
// except pipe operator with multiple queries
15245
+
dialects.verified_stmt("SELECT * FROM users |> EXCEPT DISTINCT (SELECT * FROM admins), (SELECT * FROM guests)");
15246
+
15247
+
// except pipe operator with BY NAME and multiple queries
15248
+
dialects.verified_stmt("SELECT * FROM users |> EXCEPT DISTINCT BY NAME (SELECT * FROM admins), (SELECT * FROM guests)");
15249
+
15238
15250
// many pipes
15239
15251
dialects.verified_stmt(
15240
15252
"SELECT * FROM CustomerOrders |> AGGREGATE SUM(cost) AS total_cost GROUP BY customer_id, state, item_type |> EXTEND COUNT(*) OVER (PARTITION BY customer_id) AS num_orders |> WHERE num_orders > 1 |> AGGREGATE AVG(total_cost) AS average GROUP BY state DESC, item_type ASC",
15241
15253
);
15242
15254
}
15243
15255
15256
+
#[test]
15257
+
fn parse_pipeline_operator_negative_tests() {
15258
+
let dialects = all_dialects_where(|d| d.supports_pipe_operator());
0 commit comments