Changeset: 9770a47ad54e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9770a47ad54e
Modified Files:
gdk/gdk_group.c
Branch: dict
Log Message:
Allocate enough space for extents and histogram.
diffs (16 lines):
diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c
--- a/gdk/gdk_group.c
+++ b/gdk/gdk_group.c
@@ -813,8 +813,11 @@ BATgroup_internal(BAT **groups, BAT **ex
maxgrps = GROUPBATINCR;
bi = bat_iterator(b);
- if (bi.width <= 2)
+ if (bi.width <= 2) {
maxgrps = (BUN) 1 << (8 * bi.width);
+ if (bi.width == 1 && maxgrp < 256)
+ maxgrps *= maxgrp;
+ }
if (extents) {
en = COLnew(0, TYPE_oid, maxgrps, TRANSIENT);
if (en == NULL)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list