Changeset: 6c3716c9bb81 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6c3716c9bb81
Modified Files:
        sql/backends/monet5/sql.c
Branch: mosaic
Log Message:

Simplified test case
This should be a safe test to play around with the BATs.


diffs (39 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -3918,11 +3918,16 @@ SQLcompress(Client cntxt, MalBlkPtr mb, 
 
        for (o = t->columns.set->h; o; o = o->next) {
                sql_delta *d;
+               BAT *bn;
                c = o->data;
                b = store_funcs.bind_col(tr, c, 0);
                if (b == NULL)
                        throw(SQL, "sql.compress", "Can not access descriptor");
-               msg =MOScompressInternal(cntxt, &bid, &b->batCacheid,0);
+               // simplified test case
+               bn = BATcopy(b,b->htype, b->ttype,0,TRANSIENT);
+               BBPkeepref(bn->batCacheid);
+               bid = bn->batCacheid;
+               //msg =MOScompressInternal(cntxt, &bid, &b->batCacheid,0);
                BBPreleaseref(b->batCacheid);
                if (msg) 
                        return msg;
@@ -3975,11 +3980,16 @@ SQLdecompress(Client cntxt, MalBlkPtr mb
 
        for (o = t->columns.set->h; o; o = o->next) {
                sql_delta *d;
+               BAT *bn;
                c = o->data;
                b = store_funcs.bind_col(tr, c, 0);
                if (b == NULL)
                        throw(SQL, "sql.decompress", "Can not access 
descriptor");
-               msg =MOSdecompressInternal(cntxt, &bid, &b->batCacheid);
+               // simplified test case
+               bn = BATcopy(b,b->htype, b->ttype,0,TRANSIENT);
+               BBPkeepref(bn->batCacheid);
+               bid = bn->batCacheid;
+               //msg =MOSdecompressInternal(cntxt, &bid, &b->batCacheid);
                BBPreleaseref(b->batCacheid);
                if (msg)
                        return msg;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to