Changeset: e6a4df66047d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e6a4df66047d
Modified Files:
monetdb5/modules/kernel/vss.c
Branch: nested
Log Message:
pass hseqbase and when returning candidates include the hseqbase of the input
diffs (23 lines):
diff --git a/monetdb5/modules/kernel/vss.c b/monetdb5/modules/kernel/vss.c
--- a/monetdb5/modules/kernel/vss.c
+++ b/monetdb5/modules/kernel/vss.c
@@ -252,7 +252,7 @@ BATl2sq_distance(Client ctx, MalBlkPtr m
cnt = BATcount(b);
BBPreclaim(b);
- BAT *bn = COLnew(0, TYPE_dbl, cnt, TRANSIENT);
+ BAT *bn = COLnew(b->hseqbase, TYPE_dbl, cnt, TRANSIENT);
if (bn == NULL)
throw(MAL, "batvss.l2sq_distance", MAL_MALLOC_FAIL);
@@ -714,8 +714,9 @@ pdx(Client ctx, MalBlkPtr mb, MalStkPtr
// Copy heap results to BAT
+ BUN base = b->hseqbase;
for (size_t i = 0; i < k; i++) {
- ((oid*)Tloc(bn, 0))[i] = cands[i];
+ ((oid*)Tloc(bn, 0))[i] = cands[i] + base;
}
// Finalize BAT metadata
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]