Changeset: d1875b1f1c63 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d1875b1f1c63 Modified Files: sql/backends/monet5/sql_rank.c Branch: default Log Message:
Don't copy, return the input instead diffs (16 lines): diff --git a/sql/backends/monet5/sql_rank.c b/sql/backends/monet5/sql_rank.c --- a/sql/backends/monet5/sql_rank.c +++ b/sql/backends/monet5/sql_rank.c @@ -66,10 +66,8 @@ SQLdiff(Client cntxt, MalBlkPtr mb, MalS gdk_code = GDKanalyticaldiff(r, b, c, b->ttype); } else { /* the input is a constant, so the output is the previous sql.diff output */ assert(b->ttype == TYPE_bit); - if (!(r = COLcopy(b, TYPE_bit, false, TRANSIENT))) { - msg = createException(SQL, "sql.diff", SQLSTATE(HY013) MAL_MALLOC_FAIL); - goto bailout; - } + BBPkeepref(*res = b->batCacheid); + return MAL_SUCCEED; } } else { if (!(r = COLnew(b->hseqbase, TYPE_bit, BATcount(b), TRANSIENT))) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list