Changeset: b2f54dce6725 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b2f54dce6725
Modified Files:
        gdk/gdk_string.c
Branch: Mar2025
Log Message:

Minor fix to group concat with singleton groups.
Probably never happens in this branch.


diffs (17 lines):

diff --git a/gdk/gdk_string.c b/gdk/gdk_string.c
--- a/gdk/gdk_string.c
+++ b/gdk/gdk_string.c
@@ -1181,10 +1181,12 @@ BATgroupstr_group_concat(BAT *b, BAT *g,
                goto done;
        }
 
-       if (BATtdense(g) || (g->tkey && g->tnonil)) {
+       if (ci.ncand == ngrp && (BATtdense(g) || (g->tkey && g->tnonil))) {
                /* trivial: singleton groups, so all results are equal
                 * to the inputs (but possibly a different type) */
                bn = BATconvert(b, s, TYPE_str, 0, 0, 0);
+               if (bn)
+                       bn->hseqbase = min;
                goto done;
        }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to