Changeset: f8548de991b1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f8548de991b1
Modified Files:
        monetdb5/modules/mal/remote.mx
Branch: default
Log Message:

remote.get: run propcheck to detect errors

Running BATpropcheck reveals what we reconstructed isn't quite right.
Step 1, set keyed for dense void cols.


diffs (26 lines):

diff --git a/monetdb5/modules/mal/remote.mx b/monetdb5/modules/mal/remote.mx
--- a/monetdb5/modules/mal/remote.mx
+++ b/monetdb5/modules/mal/remote.mx
@@ -1357,9 +1357,12 @@
        if (bb.Ttype == TYPE_void) {
                b->tseqbase = bb.Tseqbase;
                b->tdense = 1;
+               b->tkey = 1;
        }
-       if (bb.Htype == TYPE_void)
+       if (bb.Htype == TYPE_void) {
                b->hdense = 1;
+               b->hkey = 1;
+       }
        b->batCount = bb.size;
 
        /* for strings, the width may not match, fix it to match what we
@@ -1386,6 +1389,8 @@
                mnstr_printf(GDKout, "!MALexception:remote.bincopyfrom: 
expected flush, got: %c", tmp);
        }
 
+       BATpropcheck(b, BATPROPS_ALL);
+
        *ret = b;
        return(MAL_SUCCEED);
 }
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to