Changeset: 27648dfbfbb6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/27648dfbfbb6
Modified Files:
        gdk/gdk_firstn.c
Branch: Dec2025
Log Message:

Keep candidate list and groups aligned.


diffs (21 lines):

diff --git a/gdk/gdk_firstn.c b/gdk/gdk_firstn.c
--- a/gdk/gdk_firstn.c
+++ b/gdk/gdk_firstn.c
@@ -1350,7 +1350,7 @@ BATfirstn_offset(BAT *b, BAT *s, BAT *g,
        if (o == 0)
                return topno;
        /* calculate first o values */
-       rc = BATfirstn(&topo, NULL, b, topno, g, o, asc, nilslast, distinct);
+       rc = BATfirstn(&topo, NULL, b, s, g, o, asc, nilslast, distinct);
        if (rc != GDK_SUCCEED) {
                BBPreclaim(topno);
                return NULL;
@@ -1575,7 +1575,7 @@ BATgroupedfirstn_offset(BUN n, BUN o, BA
        topno = BATgroupedfirstn(no, s, g, nbats, bats, asc, nilslast);
        if (o == 0 || topno == NULL)
                return topno;
-       topo = BATgroupedfirstn(o, topno, g, nbats, bats, asc, nilslast);
+       topo = BATgroupedfirstn(o, s, g, nbats, bats, asc, nilslast);
        if (topo == NULL) {
                BBPreclaim(topno);
                return NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to