Changeset: 2a99dbb0b241 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2a99dbb0b241
Modified Files:
monetdb5/modules/kernel/algebra.c
Branch: arrays
Log Message:
fixed count for dimensions
diffs (15 lines):
diff --git a/monetdb5/modules/kernel/algebra.c
b/monetdb5/modules/kernel/algebra.c
--- a/monetdb5/modules/kernel/algebra.c
+++ b/monetdb5/modules/kernel/algebra.c
@@ -1633,7 +1633,10 @@ ALGcount_bat(wrd *result, const bat *bid
if ((b = BATdescriptor(*bid)) == NULL) {
throw(MAL, "aggr.count", RUNTIME_OBJECT_MISSING);
}
- *result = (wrd) BATcount(b);
+ if(isBATarray(b))
+ *result = dimensionBATsize(b);
+ else
+ *result = (wrd) BATcount(b);
BBPunfix(b->batCacheid);
return MAL_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list