Changeset: 3dbe2dc6934f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3dbe2dc6934f
Modified Files:
monetdb5/modules/mal/mat.c
Branch: default
Log Message:
also set the estimate of the unique values in mat.pack
diffs (19 lines):
diff --git a/monetdb5/modules/mal/mat.c b/monetdb5/modules/mal/mat.c
--- a/monetdb5/modules/mal/mat.c
+++ b/monetdb5/modules/mal/mat.c
@@ -172,6 +172,7 @@ MATpackIncrement(Client cntxt, MalBlkPtr
BBPunfix(b->batCacheid);
throw(MAL, "mat.pack", GDK_EXCEPTION);
}
+ bn->tunique_est = b->tunique_est;
bn->unused = (pieces - 1); /* misuse "unused" field */
BBPunfix(b->batCacheid);
if (bn->tnil && bn->tnonil) {
@@ -208,6 +209,7 @@ MATpackIncrement(Client cntxt, MalBlkPtr
throw(MAL, "mat.pack", GDK_EXCEPTION);
}
BBPunfix(bb->batCacheid);
+ b->tunique_est += bb->tunique_est;
b->unused--;
if (b->unused == 0 && (b = BATsetaccess(b, BAT_READ)) == NULL)
throw(MAL, "mat.pack", GDK_EXCEPTION);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]