Changeset: 987259335256 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/987259335256
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: ordered-set-aggregates
Log Message:

Pass groups to limit call.


diffs (12 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -4503,7 +4503,7 @@ rel2bin_project(backend *be, sql_rel *re
                                continue;
                        orderbycolstmt = column(be, orderbycolstmt);
                        if (!limit) {   /* topn based on a single column */
-                               limit = stmt_limit(be, orderbycolstmt, NULL, 
NULL, stmt_atom_lng(be, 0), l, is_ascending(orderbycole), 
nulls_last(orderbycole), nr_obe, 1);
+                               limit = stmt_limit(be, orderbycolstmt, NULL, 
grp, stmt_atom_lng(be, 0), l, is_ascending(orderbycole), 
nulls_last(orderbycole), nr_obe, 1);
                        } else {        /* topn based on 2 columns */
                                limit = stmt_limit(be, orderbycolstmt, lpiv, 
lgid, stmt_atom_lng(be, 0), l, is_ascending(orderbycole), 
nulls_last(orderbycole), nr_obe, 1);
                        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to