Changeset: 237a8b708475 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=237a8b708475
Modified Files:
        monetdb5/extras/jaql/jaqlgencode.c
Branch: jacqueline
Log Message:

transform: keep kind BAT sorted, since json.print expects that

It's probably good for efficiency to keep the kind BAT sorted.
json.print should not fail when it's not, however.  So this is basically
just a workaround, that seems useful from another angle.


diffs (17 lines):

diff --git a/monetdb5/extras/jaql/jaqlgencode.c 
b/monetdb5/extras/jaql/jaqlgencode.c
--- a/monetdb5/extras/jaql/jaqlgencode.c
+++ b/monetdb5/extras/jaql/jaqlgencode.c
@@ -1154,6 +1154,13 @@ dumpvariabletransformation(MalBlkPtr mb,
                        pushInstruction(mb, q);
                        q = newInstruction(mb, ASSIGNsymbol);
                        setModuleId(q, algebraRef);
+                       setFunctionId(q, sortRef);
+                       q = pushReturn(mb, q, newTmpVariable(mb, TYPE_any));
+                       q = pushArgument(mb, q, a);
+                       a = getArg(q, 0);
+                       pushInstruction(mb, q);
+                       q = newInstruction(mb, ASSIGNsymbol);
+                       setModuleId(q, algebraRef);
                        setFunctionId(q, putName("kunion", 6));
                        q = pushReturn(mb, q, newTmpVariable(mb, TYPE_any));
                        q = pushArgument(mb, q, *j1);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to