Changeset: be302837ccdd for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=be302837ccdd Modified Files: monetdb5/modules/kernel/arrays.c Branch: arrays Log Message:
projecting vals ignores the dims (second time, first one lost?!) diffs (33 lines): diff --git a/monetdb5/modules/kernel/arrays.c b/monetdb5/modules/kernel/arrays.c --- a/monetdb5/modules/kernel/arrays.c +++ b/monetdb5/modules/kernel/arrays.c @@ -992,6 +992,21 @@ str ALGprojectDimension(bat* result, con } str ALGprojectNonDimension(bat *result, const bat *vals, const ptr *array) { + /* just send the input vals to the output */ + (void)*array; + + /* make a copy of vals */ + BAT *resBAT, *inputBAT = BATdescriptor(*vals); + if(!inputBAT) + throw(MAL, "algebra.projectArray", RUNTIME_OBJECT_MISSING); + + resBAT = BATcopy(inputBAT, TYPE_void, BATttype(inputBAT), FALSE, TRANSIENT); + + BBPunfix(inputBAT->batCacheid); + BBPkeepref(*result = resBAT->batCacheid); + return MAL_SUCCEED; + +#if 0 const gdk_array *dimsCands = arrayCopy((gdk_array*)*array); //candidates exactly the same to the array //empty cands so that it will project all cells @@ -999,6 +1014,7 @@ str ALGprojectNonDimension(bat *result, bat oidsCands = oidsCandsBAT->batCacheid; return ALGnonDimensionLeftfetchjoin1(result, (void*)&dimsCands, &oidsCands, vals, array); +#nedif } str ALGnonDimensionQRDecomposition(bat *oidsRes, ptr *dimsRes, const bat* vals, const ptr *dims) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list