From e74106cc7b236fac4913b192af1faab688736f33 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 4 Mar 2025 21:32:23 +0100 Subject: Added the possibility to filter a group function without giving a group --- tests/analyser_query_test.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/analyser_query_test.ml') diff --git a/tests/analyser_query_test.ml b/tests/analyser_query_test.ml index c4ab6d8..16a9bca 100644 --- a/tests/analyser_query_test.ml +++ b/tests/analyser_query_test.ml @@ -166,7 +166,9 @@ let sum_unfiltered = let query, _ = ImportAnalyser.Query.select conf in let expected_query = - "SELECT SUM('previous'.'col_5') AS result_0\nFROM 'source' AS 'previous'" + "SELECT SUM('previous'.'col_5') OVER (ORDER BY 'previous'.'col_1') AS \ + result_0\n\ + FROM 'source' AS 'previous'" in Alcotest.check Alcotest.string "" expected_query query.q -- cgit v1.2.3