Changeset: 7d824296ea7d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7d824296ea7d
Modified Files:
        monetdb5/modules/mal/groupby.c
Branch: default
Log Message:

Remove unused variable.


diffs (21 lines):

diff --git a/monetdb5/modules/mal/groupby.c b/monetdb5/modules/mal/groupby.c
--- a/monetdb5/modules/mal/groupby.c
+++ b/monetdb5/modules/mal/groupby.c
@@ -69,7 +69,6 @@ GROUPcollect(Client cntxt, MalBlkPtr mb,
        AGGRtask *a;
        int i;
        BAT *b, *bs, *bh = NULL;
-       BUN sample;
 
        (void) mb;
        (void) cntxt;
@@ -101,8 +100,7 @@ GROUPcollect(Client cntxt, MalBlkPtr mb,
                        GDKfree(a);
                        return NULL;
                }
-               sample = BATcount(b) < 1000 ? BATcount(b) : 1000;
-               bs = BATsample(b, sample);
+               bs = BATsample(b, 1000);
                if (bs) {
                        bh = BATunique(b, bs);
                        if (bh) {
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to