Changeset: c7f15cc3da50 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c7f15cc3da50
Modified Files:
        gdk/gdk_aggr.c
Branch: default
Log Message:

Use BATproject instead of BATleftjoin in quantile code.


diffs (26 lines):

diff --git a/gdk/gdk_aggr.c b/gdk/gdk_aggr.c
--- a/gdk/gdk_aggr.c
+++ b/gdk/gdk_aggr.c
@@ -2240,20 +2240,10 @@ BATgroupquantile(BAT *b, BAT *g, BAT *e,
        if (s) {
                /* there is a candidate list, replace b (and g, if
                 * given) with just the values we're interested in */
-               b = BATleftjoin(s, b, BATcount(s));
-               if (b->htype != TYPE_void) {
-                       t1 = BATmirror(BATmark(BATmirror(b), 0));
-                       BBPunfix(b->batCacheid);
-                       b = t1;
-               }
+               b = BATproject(s, b);
                freeb = 1;
                if (g) {
-                       g = BATleftjoin(s, g, BATcount(s));
-                       if (g->htype != TYPE_void) {
-                               t1 = BATmirror(BATmark(BATmirror(g), 0));
-                               BBPunfix(g->batCacheid);
-                               g = t1;
-                       }
+                       g = BATproject(s, g);
                        freeg = 1;
                }
        }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to